Handbook
Glossary
draw-world ( world -- )
Factor handbook
»
UI framework
»
Developing UI backends
»
UI backend window management
Prev:
raise-window ( gadget -- )
Next:
select-gl-context ( handle -- )
Vocabulary
ui
.
gadgets
.
worlds
Inputs
world
a
world
Outputs
None
Word description
Redraws a world.
Notes
This word should only be called by the UI backend. To force a gadget to redraw from user code, call
relayout-1
.
Definition
USING:
accessors
combinators
continuations
kernel
namespaces
;
IN:
ui.gadgets.worlds
:
draw-world
( world -- )
dup
draw-world?
[
[
dup
[
draw-world*
]
with-gl-context
flush-layout-cache-hook
get
( -- )
call-effect
]
[
swap
f
>>active?
<world-error>
rethrow
]
recover
]
[
drop
]
if
;