Handbook Glossary
factorcode.org
<presentation> ( label object -- button )
Factor handbook » UI framework » Building user interfaces » Pre-made UI gadgets » Presentation gadgets

Prev:presentation


Vocabulary
ui.gadgets.presentations

Inputs
labela label
objectan object


Outputs
buttona new button


Word description
Creates a new presentation derived from <roll-button>.

See also
Presentations

See also
<button>, <border-button>, <command-button>, <roll-button>

Definition
USING: accessors kernel ui.gadgets.buttons
ui.gadgets.buttons.private ;

IN: ui.gadgets.presentations

: <presentation> ( label object -- button )
[ [ invoke-primary ] presentation new-button ] dip >>object
[ drop ] >>hook roll-button-theme ;