|
NAMEGtk2::Paned - wrapper for GtkPanedHIERARCHYGlib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Paned INTERFACESGlib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Gtk2::Orientable Gtk2::Paned is the base class for widgets with two panes, arranged either horizontally (Gtk2::HPaned) or vertically (Gtk2::VPaned). Child widgets are added to the panes of the widget with "$paned->pack1" and "$paned->pack2". The division between the two children is set by default from the size requests of the children, but it can be adjusted by the user. A paned widget draws a separator between the two child widgets and a small handle that the user can drag to adjust the division. It does not draw any relief around the children or around the separator. Often, it is useful to put each child inside a Gtk2::Frame with the shadow type set to 'in' so that the gutter appears as a ridge. Each child has two options that can be set, resize and shrink. If resize is true, then when the Gtk2::Paned is resized, that child will expand or shrink along with the paned widget. If shrink is true, then when that child can be made smaller than its requisition by the user. Setting shrink to FALSE allows the application to set a minimum size. If resize is false for both children, then this is treated as if resize is true for both children. The application can set the position of the slider as if it were set by the user, by calling "$paned->set_position". METHODS$paned->add1 ($child)
$paned->add2 ($child)
widget = $paned->child1widget = $paned->get_child1boolean = $paned->child1_resize$paned->child1_resize (newval)
"child1_resize" determines whether the first child should expand when $paned is resized. boolean = $paned->child1_shrink$paned->child1_shrink (newval)
"child1_shrink" determines whether the first child may be made smaller than its requisition. widget = $paned->child2widget = $paned->get_child2boolean = $paned->child2_resize$paned->child2_resize (newval)
"child2_resize" determines whether the second child should expand when $paned is resized. boolean = $paned->child2_shrink$paned->child2_shrink (newval)
"child2_shrink" determines whether the second child may be made smaller than its requisition. $paned->compute_position ($allocation, $child1_req, $child2_req)
window = $paned->get_handle_windowSince: gtk+ 2.20$paned->pack1 ($child, $resize, $shrink)
$paned->pack2 ($child, $resize, $shrink)
integer = $paned->get_position$paned->set_position ($position)
PROPERTIES
CHILD PROPERTIES
STYLE PROPERTIES
SIGNALS
ENUMS AND FLAGSenum Gtk2::ScrollType
SEE ALSOGtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::ContainerCOPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team.This software is licensed under the LGPL. See Gtk2 for a full notice.
Visit the GSP FreeBSD Man Page Interface. |