]> gitweb.factorcode.org Git - factor.git/blob - extra/nehe/nehe.factor
pry off some ui app boilerplate with a MAIN-WINDOW: syntax
[factor.git] / extra / nehe / nehe.factor
1 USING: ui.gadgets.buttons ui.gadgets.packs ui.gadgets ui
2 nehe.2 nehe.3 nehe.4 nehe.5 kernel accessors ;
3 IN: nehe
4
5 MAIN-WINDOW: nehe-window { { title "Nehe Examples" } }
6     <filled-pile>
7         "Nehe 2" [ drop run2 ] <border-button> add-gadget
8         "Nehe 3" [ drop run3 ] <border-button> add-gadget
9         "Nehe 4" [ drop run4 ] <border-button> add-gadget
10         "Nehe 5" [ drop run5 ] <border-button> add-gadget
11         >>gadgets ;
12
13 MAIN: nehe-window