![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FX4Splitter.h>
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) | |
FXWindow * | getTopLeft () const |
FXWindow * | getTopRight () const |
FXWindow * | getBottomLeft () const |
FXWindow * | getBottomRight () 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) |
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:
anonymous enum |
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.
FXWindow* FX::FX4Splitter::getTopLeft | ( | ) | const |
Get top left child, if any.
FXWindow* FX::FX4Splitter::getTopRight | ( | ) | const |
Get top right child, if any.
FXWindow* FX::FX4Splitter::getBottomLeft | ( | ) | const |
Get bottom left child, if any.
FXWindow* FX::FX4Splitter::getBottomRight | ( | ) | const |
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.
void FX::FX4Splitter::setHSplit | ( | FXint | s | ) |
Change horizontal split fraction.
void FX::FX4Splitter::setVSplit | ( | FXint | s | ) |
Change vertical split fraction.
virtual void FX::FX4Splitter::layout | ( | ) | [virtual] |
virtual FXint FX::FX4Splitter::getDefaultWidth | ( | ) | [virtual] |
virtual FXint FX::FX4Splitter::getDefaultHeight | ( | ) | [virtual] |
FXuint FX::FX4Splitter::getSplitterStyle | ( | ) | const |
Return current splitter style.
void FX::FX4Splitter::setSplitterStyle | ( | FXuint | style | ) |
Change splitter style.
void FX::FX4Splitter::setBarSize | ( | FXint | bs | ) |
Change splitter bar width.
FXint FX::FX4Splitter::getBarSize | ( | ) | const [inline] |
Get splitter bar width.
void FX::FX4Splitter::setExpanded | ( | FXuint | set = FX4Splitter::ExpandAll |
) |
Change set of expanded children.
FXuint FX::FX4Splitter::getExpanded | ( | ) | const |
Get set of expanded children.
virtual void FX::FX4Splitter::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FX4Splitter::load | ( | FXStream & | store | ) | [virtual] |
![]() |