USING: accessors arrays assocs boxes classes.tuple
classes.tuple.parser combinators combinators.short-circuit
concurrency.flags concurrency.promises continuations deques
-destructors dlists init kernel lexer make math math.functions
+destructors dlists kernel lexer make math math.functions
namespaces parser sequences sets strings threads ui.backend
ui.gadgets ui.gadgets.private ui.gadgets.worlds ui.gestures
ui.render vectors vocabs.parser words ;
dup hand-world get-global eq?
[ hand-loc get-global swap move-hand ] [ drop ] if ;
-: slurp-vector ( .. seq quot: ( ... elt -- .. ) -- )
+: slurp-vector ( ... seq quot: ( ... elt -- ... ) -- ... )
over '[ _ empty? not ] -rot '[ _ pop @ ] while ; inline
: layout-queued ( -- seq )
M: object close-window
find-world [ ungraft ] when* ;
-[
+STARTUP-HOOK: [
f ui-running set-global
<flag> ui-notify-flag set-global
-] "ui" add-startup-hook
+]
HOOK: resize-window ui-backend ( world dim -- )
M: object resize-window 2drop ;