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

FX::FXSplitter Class Reference

Splitter window is used to interactively repartition two or more subpanels. More...

#include <FXSplitter.h>

Inheritance diagram for FX::FXSplitter:

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

Public Member Functions

 FXSplitter (FXComposite *p, FXuint opts=SPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 FXSplitter (FXComposite *p, FXObject *tgt, FXSelector sel, FXuint opts=SPLITTER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void layout ()
FXint getSplit (FXint index) const
void setSplit (FXint index, FXint size)
void setSplitterStyle (FXuint style)
FXuint getSplitterStyle () const
void setBarSize (FXint bs)
FXint getBarSize () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXSplitter ()

Detailed Description

Splitter window is used to interactively repartition two or more subpanels.

Space may be subdivided horizontally (SPLITTER_HORIZONTAL, which the default) or vertically (SPLITTER_VERTICAL option). 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 panels; 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.

See also:


Constructor & Destructor Documentation

FX::FXSplitter::FXSplitter FXComposite p,
FXuint  opts = SPLITTER_NORMAL,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0
 

Construct new splitter widget.

FX::FXSplitter::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 FX::FXSplitter::~FXSplitter  )  [virtual]
 

Destroy splitter.


Member Function Documentation

virtual FXint FX::FXSplitter::getDefaultWidth  )  [virtual]
 

Get default width.

Reimplemented from FX::FXComposite.

virtual FXint FX::FXSplitter::getDefaultHeight  )  [virtual]
 

Get default height.

Reimplemented from FX::FXComposite.

virtual void FX::FXSplitter::layout  )  [virtual]
 

Perform layout.

Reimplemented from FX::FXComposite.

FXint FX::FXSplitter::getSplit FXint  index  )  const
 

Return size of the panel at index.

void FX::FXSplitter::setSplit FXint  index,
FXint  size
 

Change the size of panel at the given index.

void FX::FXSplitter::setSplitterStyle FXuint  style  ) 
 

Change splitter style.

FXuint FX::FXSplitter::getSplitterStyle  )  const
 

Return current splitter style.

void FX::FXSplitter::setBarSize FXint  bs  ) 
 

Change splitter bar size.

FXint FX::FXSplitter::getBarSize  )  const [inline]
 

Return current bar size.

virtual void FX::FXSplitter::save FXStream store  )  const [virtual]
 

Save to stream.

Reimplemented from FX::FXWindow.

virtual void FX::FXSplitter::load FXStream store  )  [virtual]
 

Load from stream.

Reimplemented from FX::FXWindow.

Copyright © 1997-2005 Jeroen van der Zijp