Jargon GUI Calls

Jargon GUI calls to be used with system call 128.
All GUI objects inherit from JObject.

JButton

Mask 0x0200

NumberPrototypeDescription
0x0200int gui(int parent, 0x0200) Create a new JButton.
0x0201void gui(int button, string label, 0x0201) Set the label of a JButton.
0x0202string 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

NumberPrototypeDescription
0x0400int gui(int parent, string label, 0x0400) Create a JLabel
0x0401void gui(int label, string label, 0x0401) Set the label text.
0x0402string gui(int label, 0x0402) Get the label text.

JObject

Mask 0x0000

NumberPrototypeDescription
0x0000void gui(int object, 0x0000) Show an object.
0x0001void gui(int object, 0x0001) Hide an object.
0x0002void gui(int object, int width, 0x0002) Set the width of an object.
0x0003void gui(int object, int height, 0x0003) Set the height of an object.
0x0004int gui(int object, 0x0004) Get the width of an object.
0x0005int gui(int object, 0x0005) Get the height of an object.

JPanel

Mask 0x0300

NumberPrototypeDescription
0x0300int gui(int parent, 0x0300) Create a horizontal panel.
0x0301int gui(int parent, 0x0301) Create a vertical panel.

JToggle

Mask 0x0500

NumberPrototypeDescription
0x0500int gui(int parent, 0x0500) Create a toggle button.

JWindow

Mask 0x0100

NumberPrototypeDescription
0x0100int gui(0x0100) Create a window.
0x0101void gui(int object, 0x0101) Give the GUI object control.

Home / Programs / Jargon