Aligns a fixed-size item in horizontal direction. More...
#include <Sizer.h>
Public Member Functions | |
HAlignSizer () | |
HAlignSizer (ISizer *pItem, SIZER_HALIGN pAlign) | |
HAlignSizer (HWND window, SIZER_HALIGN 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_HALIGN pAlign) |
void | SetItem (HWND window, SIZER_HALIGN pAlign) |
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 |
Aligns a fixed-size item in horizontal direction.
HAlignSizer::HAlignSizer | ( | ) |
Empty constructor. Call SetItem() to initialize this instance later.
HAlignSizer::HAlignSizer | ( | ISizer * | pItem, |
SIZER_HALIGN | pAlign | ||
) |
Creates a horizontal alignment wrapper around a sizer.
HAlignSizer::HAlignSizer | ( | HWND | window, |
SIZER_HALIGN | pAlign | ||
) |
Creates a horizontal 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.