![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
The Switcher layout manager automatically arranges its child windows such that one of them is placed on top; all other child windows are hidden. More...
#include <FXSwitcher.h>
Public Types | |
| enum | { ID_OPEN_FIRST = FXPacker::ID_LAST, ID_OPEN_SECOND, ID_OPEN_THIRD, ID_OPEN_FOURTH, ID_OPEN_FIFTH, ID_OPEN_SIXTH, ID_OPEN_SEVENTH, ID_OPEN_EIGHTH, ID_OPEN_NINETH, ID_OPEN_TENTH, ID_OPEN_LAST = ID_OPEN_FIRST+100, ID_LAST } |
Public Member Functions | |
| long | onPaint (FXObject *, FXSelector, void *) |
| long | onCmdSetValue (FXObject *, FXSelector, void *) |
| long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdOpen (FXObject *, FXSelector, void *) |
| long | onUpdOpen (FXObject *, FXSelector, void *) |
| FXSwitcher (FXComposite *p, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_SPACING, FXint pr=DEFAULT_SPACING, FXint pt=DEFAULT_SPACING, FXint pb=DEFAULT_SPACING) | |
| Construct a switcher layout manager. | |
| virtual FXint | getDefaultWidth () |
| Return default width. | |
| virtual FXint | getDefaultHeight () |
| Return default height. | |
| virtual void | layout () |
| Perform layout. | |
| void | setCurrent (FXint index, FXbool notify=false) |
| Bring the child window at index to the top. | |
| FXint | getCurrent () const |
| Return the index of the child window currently on top. | |
| void | setSwitcherStyle (FXuint style) |
| Set the switcher style flags. | |
| FXuint | getSwitcherStyle () const |
| Get the switcher style flags. | |
| virtual void | save (FXStream &store) const |
| Save to stream. | |
| virtual void | load (FXStream &store) |
| Load from stream. | |
Protected Attributes | |
| FXint | current |
The Switcher layout manager automatically arranges its child windows such that one of them is placed on top; all other child windows are hidden.
Switcher provides a convenient method to conserve screen real-estate by arranging several GUI panels to appear in the same space, depending on context. Switcher ignores all layout hints from its children:- all children are stretched according to the switcher layout managers own size. When the SWITCHER_HCOLLAPSE or SWITCHER_VCOLLAPSE options are used, Switcher's default size is based on the width or height of the current child, instead of the maximum width or height of all of the children.
|
|