factor/library/ui/init-world.factor

28 lines
662 B
Factor
Raw Normal View History

2005-03-03 22:24:51 -05:00
! Copyright (C) 2005 Slava Pestov.
! See http://factor.sf.net/license.txt for BSD license.
IN: gadgets
2005-06-27 03:47:22 -04:00
USING: generic kernel math namespaces styles ;
2005-03-22 21:20:58 -05:00
2005-03-03 22:24:51 -05:00
global [
<world> world set
{{
[[ background [ 255 255 255 ] ]]
[[ rollover-bg [ 216 216 216 ] ]]
2005-03-03 22:24:51 -05:00
[[ foreground [ 0 0 0 ] ]]
[[ reverse-video f ]]
2005-06-27 03:47:22 -04:00
[[ font "Sans Serif" ]]
[[ font-size 12 ]]
[[ font-style plain ]]
2005-03-03 22:24:51 -05:00
}} world get set-gadget-paint
2005-03-22 21:20:58 -05:00
2005-06-29 19:40:44 -04:00
{ 1024 768 0 } world get set-gadget-dim
2005-06-29 19:40:44 -04:00
<plain-gadget> add-layer
<console> "Stack display goes here" <label> <y-splitter>
3/4 over set-splitter-split add-layer
2005-03-03 22:24:51 -05:00
] bind