Places all its item at the same coordinates, so they overlap. More...
#include <Sizer.h>
Public Member Functions | |
virtual void | OnCalcSizes () |
virtual void | OnRectChanged (int x, int y, int w, int h) |
virtual size_t | GetItemCount () |
virtual ISizer * | GetItem (size_t i) |
void | SetOuterPadding (int pad) |
void | Add (ISizer *item) |
void | Add (HWND window) |
void | RemoveAll () |
![]() | |
void | CalcSizes () |
SizerSize | GetMinSize () |
void | Move (int x, int y, int w, int h) |
void | Move (const SizerPoint &p, const SizerSize &s) |
void | Move (const SizerRect &r) |
SizerRect | GetRect () const |
void | WmSize (UINT type, int cx, int cy) |
void | WmGetMinMaxInfo (HWND window, MINMAXINFO *mmi) |
Additional Inherited Members | |
![]() | |
bool | dirty |
SizerRect | rect |
SizerSize | minimumSize |
Places all its item at the same coordinates, so they overlap.
This is useful for making a tabcontrol with multiple child windows, where only one window is visible.
void OverlapSizer::Add | ( | ISizer * | item | ) |
Adds a sizer.
|
inline |
Shortcut to add a window.
|
inlinevirtual |
i | Index of the sizer item to get. GetItemCount() returns the maximum for this index. |
Reimplemented from ISizer.
|
inlinevirtual |
|
virtual |
Calculates sizes, but does not move the sizer in any way.
Implements ISizer.
|
virtual |
Moves the sizer and all children.
This function will always be called, even if the sizer is not dirty.
Implements ISizer.
void OverlapSizer::RemoveAll | ( | ) |
Removes all items.
void OverlapSizer::SetOuterPadding | ( | int | pad | ) |
Set padding around this sizer.