]> gitweb.factorcode.org Git - factor.git/blob - basis/ui/gadgets/books/books-docs.factor
Fix permission bits
[factor.git] / basis / ui / gadgets / books / books-docs.factor
1 USING: help.markup help.syntax ui.gadgets models ;
2 IN: ui.gadgets.books
3
4 HELP: book
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."
6 $nl
7 "Books are created by calling " { $link <book> } "." } ;
8
9 HELP: <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" } ". A book shows one child at a time, determined by the value of the model, which must be an integer " } ;
12
13 ARTICLE: "ui-book-layout" "Book layouts"
14 "Books can contain any number of children, and display one child at a time."
15 { $subsection book }
16 { $subsection <book> } ;
17
18 ABOUT: "ui-book-layout"