1 USING: help.markup help.syntax ui.gadgets models ;
5 { $class-description "A book is a control containing one or more children. The " { $link control-value } " is the index of exactly one child to be visible at any one time, the rest being hidden by having their " { $snippet "visible?" } " slots set to " { $link f } ". The sole visible child assumes the dimensions of the book gadget."
7 "Books are created by calling " { $link <book> } "." } ;
10 { $values { "pages" "a sequence of gadgets" } { "model" model } { "book" book } }
11 { $description "Creates a " { $link book } " control, which contains the gadgets in " { $snippet "pages" } "." } ;
14 { $values { "model" model } { "book" book } }
15 { $description "Creates a " { $link book } " control with no children." }
16 { $notes "Children must be added to the book before it is grafted, otherwise an error will be thrown." } ;
18 ARTICLE: "ui-book-layout" "Book layouts"
19 "Books can contain any number of children, and display one child at a time. The currently visible child is determined by the value of the model, which must be an integer."
21 { $subsection <book> }
22 { $subsection <empty-book> } ;
24 ABOUT: "ui-book-layout"