Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXSplitter Class Reference

#include <FXSplitter.h>

Inheritance diagram for FXSplitter:

FXComposite FXWindow FXDrawable FXId FXObject List of all members.

Public Methods

 FXSplitter (FXComposite *p, FXuint opts=SPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct new splitter widget.

 FXSplitter (FXComposite *p, FXObject *tgt, FXSelector sel, FXuint opts=SPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct new splitter widget, which will notify target about size changes.

virtual FXint getDefaultWidth ()
 Get default width.

virtual FXint getDefaultHeight ()
 Get default height.

void setSplitterStyle (FXuint style)
 Change splitter style.

FXuint getSplitterStyle () const
 Return current splitter style.

void setBarSize (FXint bs)
 Change splitter bar size.

FXint getBarSize () const
 Return current bar size.

virtual void save (FXStream &store) const
 Save to stream.

virtual void load (FXStream &store)
 Load from stream.

virtual ~FXSplitter ()
 Destroy splitter.


Detailed Description

Splitter window is used to interactively repartition two or more subpanes. Space may be subdivided horizontally or vertically. When the splitter is itself resized, the right-most (bottom-most) child window will be resized unless the splitter window is reversed; if the splitter is reversed, the left-most (top-most) child window will be resized instead. The splitter widget sends a SEL_CHANGED to its target during the resizing of the panes; at the end of the resize interaction, it sends a SEL_COMMAND to signify that the resize operation is complete. Normally, children are resizable from 0 upwards; however, if the child in a horizontally oriented splitter has LAYOUT_FILL_X in combination with LAYOUT_FIX_WIDTH, it will not be made smaller than its default width, except when the child is the last visible widget (or first when the option SPLITTER_REVERSED has been passed to the splitter). In a vertically oriented splitter, children with LAYOUT_FILL_Y and LAYOUT_FIX_HEIGHT behave analogously. These options only affect interactive resizing.