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

FX::FX4Splitter Class Reference

#include <FX4Splitter.h>

Inheritance diagram for FX::FX4Splitter:

FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Methods

 FX4Splitter (FXComposite *p, FXuint opts=FOURSPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Create 4-way splitter, initially shown as four unexpanded panes.

 FX4Splitter (FXComposite *p, FXObject *tgt, FXSelector sel, FXuint opts=FOURSPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Create 4-way splitter, initially shown as four unexpanded panes; notifies target about size changes.

FXWindowgetTopLeft () const
 Get top left child, if any.

FXWindowgetTopRight () const
 Get top right child, if any.

FXWindowgetBottomLeft () const
 Get bottom left child, if any.

FXWindowgetBottomRight () const
 Get bottom right child, if any.

FXint getHSplit () const
 Get horizontal split fraction.

FXint getVSplit () const
 Get vertical split fraction.

void setHSplit (FXint s)
 Change horizontal split fraction.

void setVSplit (FXint s)
 Change vertical split fraction.

virtual FXint getDefaultWidth ()
 Get default width.

virtual FXint getDefaultHeight ()
 Get default height.

FXuint getSplitterStyle () const
 Return current splitter style.

void setSplitterStyle (FXuint style)
 Change splitter style.

void setBarSize (FXint bs)
 Change splitter bar width.

FXint getBarSize () const
 Get splitter bar width.

void setExpanded (FXint ex)
 Expand child (ex=0..3), or restore to 4-way split (ex=-1).

FXint getExpanded () const
 Get expanded child, or -1 if not expanded.

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

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


Detailed Description

The four-way splitter is a layout manager which manages four children like four panes in a window. You can use a four-way splitter for example in a CAD program where you may want to maintain three orthographic views, and one oblique view of a model. The four-way splitter allows interactive repartitioning of the panes by means of moving the central splitter bars. When the four-way splitter is itself resized, each child is proportionally resized, maintaining the same split-percentage. The four-way 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.

See also: