Aligns a fixed-size item in vertical direction. More...
#include <Sizer.h>
Public Member Functions | |
| VAlignSizer () | |
| VAlignSizer (ISizer *pItem, SIZER_VALIGN pAlign) | |
| VAlignSizer (HWND window, SIZER_VALIGN pAlign) | |
| 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 | SetItem (ISizer *pItem, SIZER_VALIGN pAlign) |
| void | SetItem (HWND window, SIZER_VALIGN pAlign) |
| void | RemoveAll () |
Public Member Functions inherited from ISizer | |
| 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 | |
Protected Attributes inherited from ISizer | |
| bool | dirty |
| SizerRect | rect |
| SizerSize | minimumSize |
Aligns a fixed-size item in vertical direction.
| VAlignSizer::VAlignSizer | ( | ) |
Empty constructor. Call SetItem() to initialize this instance later.
| VAlignSizer::VAlignSizer | ( | ISizer * | pItem, |
| SIZER_VALIGN | pAlign | ||
| ) |
Creates a vertical alignment wrapper around a sizer.
| VAlignSizer::VAlignSizer | ( | HWND | window, |
| SIZER_VALIGN | pAlign | ||
| ) |
Creates a vertical alignment wrapper around a window.
|
inlinevirtual |
| i | Index of the sizer item to get. GetItemCount() returns the maximum for this index. |
Reimplemented from ISizer.
|
inlinevirtual |
|
inlinevirtual |
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.
|
inline |
Removes all items.
|
inline |
Late initialization.
|
inline |
Late initialization.
1.8.3.1