![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXSplitter.h>
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 () |
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:
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.
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.
![]() |