44 access to the controllers behavior is possible via messages to the button. |
44 access to the controllers behavior is possible via messages to the button. |
45 (setting actions, controlling autorepeat etc.) |
45 (setting actions, controlling autorepeat etc.) |
46 |
46 |
47 See examples in the Button class. |
47 See examples in the Button class. |
48 |
48 |
49 Instance variables: |
49 [Instance variables:] |
50 |
50 |
51 enableChannel <ValueHolder pressing is allowed (default: true) |
51 enableChannel <ValueHolder pressing is allowed (default: true) |
52 on Boolean> |
52 on Boolean> |
53 |
53 |
54 pressed <Boolean> true if currently pressed (read-only) |
54 pressed <Boolean> true if currently pressed (read-only) |
55 |
55 |
56 entered <Boolean> true if the cursor is currently in this view |
56 entered <Boolean> true if the cursor is currently in this view |
57 |
57 |
58 isTriggerOnDown <Boolean> controls if the action should be executed on |
58 isTriggerOnDown <Boolean> controls if the action should be executed on |
59 press or on release (default: on release). |
59 press or on release (default: on release). |
60 |
60 |
61 isToggle <Boolean> controls if the button should show toggle |
61 isToggle <Boolean> controls if the button should show toggle |
62 behavior (as opposed to one-shot behavior) |
62 behavior (as opposed to one-shot behavior) |
63 |
63 |
64 pressActionBlock <Block> block to evaluate when pressed (default: noop) |
64 pressActionBlock <Block> block to evaluate when pressed (default: noop) |
65 |
65 |
66 releaseActionBlock <Block> block to evaluate when released (default: noop) |
66 releaseActionBlock <Block> block to evaluate when released (default: noop) |
67 |
67 |