Layout pane to be used as "sash" for sizing adjacent panes. More...
#include <mgui/layout.h>

Public Member Functions | |
| LAYOUT_PANE_SASH () | |
| virtual | ~LAYOUT_PANE_SASH () |
| void | Create (MGUI::LAYOUT_PANE_BASE &pane, int Thickness=4, int ChildSpacing=4, int ExtraBorder=0) |
| void | SetDelegateOnMoved (DELEGATE_VOID_NOPARMS delegate) |
Layout pane to be used as "sash" for sizing adjacent panes.
A sash control allows the user to resize the two adjacent panes/controls by dragging. Any space not covered by other controls will be usable for adjustment. For this reason it is typical that the center part of the pane remain empty and controls be added at the ends.
| MGUI::LAYOUT_PANE_SASH::LAYOUT_PANE_SASH | ( | ) |
Constructor, initializes only, does not create actual pane.
| virtual MGUI::LAYOUT_PANE_SASH::~LAYOUT_PANE_SASH | ( | ) | [virtual] |
Destructor.
| void MGUI::LAYOUT_PANE_SASH::Create | ( | MGUI::LAYOUT_PANE_BASE & | pane, | |
| int | Thickness = 4, |
|||
| int | ChildSpacing = 4, |
|||
| int | ExtraBorder = 0 | |||
| ) |
Create the pane.
The orientation will be determined based on the parent pane's orientation.
| pane | 'Parent' pane | |
| Thickness | Sash thickness, will expand if needed to contain added controls | |
| ChildSpacing | Spacing between 'children' of pane | |
| ExtraBorder | Extra border around pane, in addition to ChildSpacing |
| void MGUI::LAYOUT_PANE_SASH::SetDelegateOnMoved | ( | DELEGATE_VOID_NOPARMS | delegate | ) |
Set delegate to call after sash moved.
Typcally used to record settings.
1.6.1