Jargon GUI Calls
Jargon GUI calls to be used with system call 128.
All GUI objects inherit from JObject.
JButton
Mask 0x0200
| Number | Prototype | Description |
|---|---|---|
| 0x0200 | int gui(int parent, 0x0200) | Create a new JButton. |
| 0x0201 | void gui(int button, string label, 0x0201) | Set the label of a JButton. |
| 0x0202 | string gui(int button, 0x0202) | Get the label of a JButton. |
| 0x0203 | void gui(int button, object obj, string func, 0x0203) | Add a call back to the named handler in the given object. |
JLabel
Mask 0x0400
| Number | Prototype | Description |
|---|---|---|
| 0x0400 | int gui(int parent, string label, 0x0400) | Create a JLabel |
| 0x0401 | void gui(int label, string label, 0x0401) | Set the label text. |
| 0x0402 | string gui(int label, 0x0402) | Get the label text. |
JObject
Mask 0x0000
| Number | Prototype | Description |
|---|---|---|
| 0x0000 | void gui(int object, 0x0000) | Show an object. |
| 0x0001 | void gui(int object, 0x0001) | Hide an object. |
| 0x0002 | void gui(int object, int width, 0x0002) | Set the width of an object. |
| 0x0003 | void gui(int object, int height, 0x0003) | Set the height of an object. |
| 0x0004 | int gui(int object, 0x0004) | Get the width of an object. |
| 0x0005 | int gui(int object, 0x0005) | Get the height of an object. |
JPanel
Mask 0x0300
| Number | Prototype | Description |
|---|---|---|
| 0x0300 | int gui(int parent, 0x0300) | Create a horizontal panel. |
| 0x0301 | int gui(int parent, 0x0301) | Create a vertical panel. |
JToggle
Mask 0x0500
| Number | Prototype | Description |
|---|---|---|
| 0x0500 | int gui(int parent, 0x0500) | Create a toggle button. |
JWindow
Mask 0x0100
| Number | Prototype | Description |
|---|---|---|
| 0x0100 | int gui(0x0100) | Create a window. |
| 0x0101 | void gui(int object, 0x0101) | Give the GUI object control. |