GMCloseButton:
Filter:
GraphicalModule/Classes (extension) | GUI > Graphical Module

GMCloseButton
ExtensionExtension

A ready made button displaying a cross for creating graphical interfaces

Description

GMCloseButton is an easy to use customisable button.

It natively displays a cross, suggesting pressing it will close the currently displayed View.

It only responds to mouse down clicks, and does not discriminate button identifiers.

Class Methods

.new

Creates a new instance of GMCloseButton.

Its graphical properties are defined by its associated GMStyle.

Returns:

a GMCloseButton instance.

Instance Methods

Interaction

.action

Sets or gets the Function to be triggered when the button is pressed down. Doesn't take argument.

Arguments:

aFunction

A Function without argument.

.mouseDownAction

Sets or gets the Function to be triggered when the button is pressed down. Doesn't take arguments. Equivalent to .action .

Arguments:

aFunction

A Function without argument.

Internal Methods

.draw

The function associated to the View's drawFunc. Shouldn't be modified, use UserView instead.

Arguments:

aFunction

Examples