2 USING: gadgets kernel arrays ;
4 : $ui-frame-constant ( element -- )
6 { $description "Symbolic constant for a common input to " { $link grid-add } "." } print-element ;
10 HELP: @center $ui-frame-constant ;
11 HELP: @left $ui-frame-constant ;
12 HELP: @right $ui-frame-constant ;
13 HELP: @top $ui-frame-constant ;
14 HELP: @bottom $ui-frame-constant ;
15 HELP: @top-left $ui-frame-constant ;
16 HELP: @top-right $ui-frame-constant ;
17 HELP: @bottom-left $ui-frame-constant ;
18 HELP: @bottom-right $ui-frame-constant ;
21 { $class-description "A frame is a gadget which lays out its children in a 3x3 grid. If the frame is enlarged past its preferred size, the center gadget fills up available room."
23 "Frames are constructed by calling " { $link <frame> } " and since they delegate to " { $link grid } " instances, children can be managed with " { $link grid-add } " and " { $link grid-remove } "." }
24 { $see-also delegate>frame make-frame make-frame* } ;
27 { $values { "frame" frame } }
28 { $description "Creates a new " { $link frame } " for laying out gadgets in a 3x3 grid." }
29 { $see-also delegate>frame make-frame make-frame* } ;
32 { $values { "tuple" tuple } }
33 { $description "Sets the tuple's delegate to a new " { $link frame } "." }
34 { $side-effects "frame" } ;
37 { $values { "specs" array } { "frame" frame } }
38 { $description "Creates a new frame from a declarative specification. See " { $link build-grid } " for a description of the format of " { $snippet "spec" } "." } ;
41 { $values { "tuple" tuple } { "specs" array } { "frame" frame } }
42 { $description "Creates a new frame from a declarative specification and sets " { $snippet "tuple" } "'s delegate to the new frame. See " { $link build-grid } " for a description of the format of " { $snippet "spec" } "." } ;