| ||||||||||||||
| ||||||||||||||
| ||||||||||||||
Description | ||||||||||||||
Base class for widgets with two adjustable panes | ||||||||||||||
Synopsis | ||||||||||||||
Detail | ||||||||||||||
Paned is the base class for widgets with two panes, arranged either horizontally (HPaned) or vertically (VPaned). Child widgets are added to the panes of the widget with panedPack1 and panedPack2. The division beween 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. (The space in which the separator is called the gutter.) Often, it is useful to put each child inside a Frame with the shadow type set to Graphics.UI.Gtk.General.Enums.ShadowIn 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 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 panedSetPosition. | ||||||||||||||
Class Hierarchy | ||||||||||||||
| GObject | +----Object | +----Widget | +----Container | +----Paned | +----HPaned | +----VPaned | ||||||||||||||
Types | ||||||||||||||
data Paned | ||||||||||||||
| ||||||||||||||
class ContainerClass o => PanedClass o | ||||||||||||||
| ||||||||||||||
castToPaned :: GObjectClass obj => obj -> Paned | ||||||||||||||
gTypePaned :: GType | ||||||||||||||
toPaned :: PanedClass o => o -> Paned | ||||||||||||||
Methods | ||||||||||||||
panedAdd1 | ||||||||||||||
| ||||||||||||||
panedAdd2 | ||||||||||||||
| ||||||||||||||
panedPack1 | ||||||||||||||
| ||||||||||||||
panedPack2 | ||||||||||||||
| ||||||||||||||
panedSetPosition | ||||||||||||||
| ||||||||||||||
panedGetPosition | ||||||||||||||
| ||||||||||||||
panedGetChild1 | ||||||||||||||
| ||||||||||||||
panedGetChild2 | ||||||||||||||
| ||||||||||||||
Attributes | ||||||||||||||
panedPosition :: PanedClass self => Attr self Int | ||||||||||||||
Position of paned separator in pixels (0 means all the way to the left/top). Allowed values: >= 0 Default value: 0 | ||||||||||||||
panedPositionSet :: PanedClass self => Attr self Bool | ||||||||||||||
True if the Position property should be used. Default value: False | ||||||||||||||
panedMinPosition :: PanedClass self => ReadAttr self Int | ||||||||||||||
The smallest possible value for the position property. This property is derived from the size and shrinkability of the widget's children. Allowed values: >= 0 Default value: 0 | ||||||||||||||
panedMaxPosition :: PanedClass self => ReadAttr self Int | ||||||||||||||
The largest possible value for the position property. This property is derived from the size and shrinkability of the widget's children. Allowed values: >= 0 Default value: 2147483647 | ||||||||||||||
Child Attributes | ||||||||||||||
panedChildResize :: (PanedClass self, WidgetClass child) => child -> Attr self Bool | ||||||||||||||
The "resize" child property determines whether the child expands and shrinks along with the paned widget. Default value: True | ||||||||||||||
panedChildShrink :: (PanedClass self, WidgetClass child) => child -> Attr self Bool | ||||||||||||||
The "shrink" child property determines whether the child can be made smaller than its requisition. Default value: True | ||||||||||||||
Deprecated Signals | ||||||||||||||
onCycleChildFocus :: PanedClass self => self -> (Bool -> IO Bool) -> IO (ConnectId self) | ||||||||||||||
afterCycleChildFocus :: PanedClass self => self -> (Bool -> IO Bool) -> IO (ConnectId self) | ||||||||||||||
onToggleHandleFocus :: PanedClass self => self -> IO Bool -> IO (ConnectId self) | ||||||||||||||
afterToggleHandleFocus :: PanedClass self => self -> IO Bool -> IO (ConnectId self) | ||||||||||||||
onMoveHandle :: PanedClass self => self -> (ScrollType -> IO Bool) -> IO (ConnectId self) | ||||||||||||||
afterMoveHandle :: PanedClass self => self -> (ScrollType -> IO Bool) -> IO (ConnectId self) | ||||||||||||||
onCycleHandleFocus :: PanedClass self => self -> (Bool -> IO Bool) -> IO (ConnectId self) | ||||||||||||||
afterCycleHandleFocus :: PanedClass self => self -> (Bool -> IO Bool) -> IO (ConnectId self) | ||||||||||||||
onAcceptPosition :: PanedClass self => self -> IO Bool -> IO (ConnectId self) | ||||||||||||||
afterAcceptPosition :: PanedClass self => self -> IO Bool -> IO (ConnectId self) | ||||||||||||||
onCancelPosition :: PanedClass self => self -> IO Bool -> IO (ConnectId self) | ||||||||||||||
afterCancelPosition :: PanedClass self => self -> IO Bool -> IO (ConnectId self) | ||||||||||||||
Produced by Haddock version 2.4.2 |