► |  | Embedded GUI: Widgets within editor<%>

1 | Containers
2 | Controls
3 | Control Snips
4 | Helpers
5 | Snip Functions

▼ | 3 | Control Snips

3.1 | snip-wrapper%
3.2 | text-button-snip%
3.3 | button-snip%
3.4 | toggle-button-snip%

top ← prev up next →

text-button-snip% : class?
superclass: snip%

A button with a text label.

( new text-button-snip% |  | [label label] |
|  | [callback callback]) |

→ ( is-a?/c text-button-snip% )
label : string?
callback : (( is-a?/c text-button-snip% ) ( is-a?/c event% ) . -> . void )

The callback is called when the button is clicked.
top ← prev up next →