button-pen
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Button gadgets

Prev:<toolbar> ( target -- toolbar )


Vocabulary
ui.gadgets.buttons

Class description
A class implementing the draw-boundary and draw-interior generic words by delegating to an object in one of four slots which depend on the state of the button being drawn:
• plain - the button is inactive
• rollover - the button is under the mouse
• pressed - the button is under the mouse and a mouse button is held down
• selected - the button is selected (see checkbox)
• pressed-selected - the button is selected and a mouse button is being held down (see checkbox)

The <roll-button> and <border-button> words create button instances with specific button-pens.

Definition

TUPLE: button-pen
plain rollover pressed selected pressed-selected ;


Methods