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 Types

enum  {
  ExpandNone = 0,
  ExpandTopLeft = 1,
  ExpandTopRight = 2,
  ExpandBottomLeft = 4,
  ExpandBottomRight = 8,
  ExpandTop = ExpandTopLeft|ExpandTopRight,
  ExpandBottom = ExpandBottomLeft|ExpandBottomRight,
  ExpandLeft = ExpandTopLeft|ExpandBottomLeft,
  ExpandRight = ExpandTopRight|ExpandBottomRight,
  ExpandAll = ExpandLeft|ExpandRight
}

Public Member Functions

 FX4Splitter (FXComposite *p, FXuint opts=FOURSPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 FX4Splitter (FXComposite *p, FXObject *tgt, FXSelector sel, FXuint opts=FOURSPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
FXWindowgetTopLeft () const
FXWindowgetTopRight () const
FXWindowgetBottomLeft () const
FXWindowgetBottomRight () const
FXint getHSplit () const
FXint getVSplit () const
void setHSplit (FXint s)
void setVSplit (FXint s)
virtual void layout ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
FXuint getSplitterStyle () const
void setSplitterStyle (FXuint style)
void setBarSize (FXint bs)
FXint getBarSize () const
void setExpanded (FXuint set=FX4Splitter::ExpandAll)
FXuint getExpanded () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)

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:


Member Enumeration Documentation

anonymous enum
Enumerator:
ExpandNone 

None expanded.

ExpandTopLeft 

Expand top left child.

ExpandTopRight 

Expand top right child.

ExpandBottomLeft 

Expand bottom left child.

ExpandBottomRight 

Expand bottom right child.

ExpandTop 

Expand top children.

ExpandBottom 

Expand bottom children.

ExpandLeft 

Expand left children.

ExpandRight 

Expand right children.

ExpandAll 

Expand all children.


Constructor & Destructor Documentation

FX::FX4Splitter::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.

FX::FX4Splitter::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.


Member Function Documentation

Get top left child, if any.

Get top right child, if any.

Get bottom left child, if any.

Get bottom right child, if any.

FXint FX::FX4Splitter::getHSplit ( ) const [inline]

Get horizontal split fraction.

FXint FX::FX4Splitter::getVSplit ( ) const [inline]

Get vertical split fraction.

Change horizontal split fraction.

Change vertical split fraction.

virtual void FX::FX4Splitter::layout ( ) [virtual]

Perform layout.

Reimplemented from FX::FXComposite.

virtual FXint FX::FX4Splitter::getDefaultWidth ( ) [virtual]

Get default width.

Reimplemented from FX::FXComposite.

Get default height.

Reimplemented from FX::FXComposite.

Return current splitter style.

Change splitter style.

Change splitter bar width.

FXint FX::FX4Splitter::getBarSize ( ) const [inline]

Get splitter bar width.

Change set of expanded children.

Get set of expanded children.

virtual void FX::FX4Splitter::save ( FXStream store) const [virtual]

Save to stream.

Reimplemented from FX::FXWindow.

virtual void FX::FX4Splitter::load ( FXStream store) [virtual]

Load from stream.

Reimplemented from FX::FXWindow.

Copyright © 1997-2005 Jeroen van der Zijp