GMCheckButton is an easy to use toggle button, that acts as a checkbox.
It alternates between being checked and unchecked, and either displays a circle or a square.
It only responds to mouse down clicks, and does not discriminate button identifiers.
Creates a new instance of GMCheckButton.
By default, its graphical properties are defined by its associated GMStyle. It uses both outlineColor
and outlineSize
properties.
a GMCheckButton instance.
Sets or gets the Function to be triggered when the button is pressed down. This Function takes the current state of the button as a boolean as argument, i.e. pressing it down once will call the Function passing true
as argument, pressing it down a second time will call the Function passing false
as argument, etc.
aFunction |
A Function with one argument, the state of the button as a Boolean. |
Sets or gets the Function to be triggered when the button is pressed down. This Function takes the current state of the button as a boolean as argument, i.e. pressing it down once will call the Function passing true
as argument, pressing it down a second time will call the Function passing false
as argument, etc. Equivalent to .action
.
aFunction |
A Function with one argument, the state of the button as a Boolean. |
Toggles the button, changing its state and evaluating the associated action.
Toggles the button display, changing its state without evaluating the associated action.
Sets or gets the View's displayed symbol style, and refreshes the View.
aSymbol |
The shape of the symbol will be a circle if set as |
Sets or gets the symbol size relative to its smallest axis, and refreshes the View.
The function associated to the View's drawFunc. Shouldn't be modified, use UserView instead.
aFunction |