factor/extra/nehe/nehe.factor

16 lines
491 B
Factor

USING: accessors kernel nehe.2 nehe.3 nehe.4 nehe.5 ui
ui.gadgets ui.gadgets.borders ui.gadgets.buttons
ui.gadgets.packs ;
IN: nehe
MAIN-WINDOW: nehe-window { { title "Nehe Examples" } }
<filled-pile>
"Nehe 2" [ drop run2 ] <border-button> add-gadget
"Nehe 3" [ drop run3 ] <border-button> add-gadget
"Nehe 4" [ drop run4 ] <border-button> add-gadget
"Nehe 5" [ drop run5 ] <border-button> add-gadget
{ 2 2 } <border> >>gadgets ;
MAIN: nehe-window