factor/core/ui/gadgets/viewports.facts

11 lines
609 B
Plaintext
Raw Normal View History

IN: gadgets-viewports
USING: help gadgets gadgets-scrolling models ;
HELP: viewport
{ $class-description "A viewport is a " { $link control } " which positions a child gadget translated by the " { $link control-value } " vector. Viewports are used in the implementation of " { $link scroller } " gadgets and can be created directly by calling " { $link <viewport> } "." } ;
HELP: <viewport>
{ $values { "content" gadget } { "model" model } { "viewport" "a new " { $link viewport } } }
{ $description "Creates a new " { $link viewport } " containing " { $snippet "content" } "." }
{ $see-also <scroller> } ;