Associates a groupbox with a sizer item. More...
#include <Sizer.h>
Public Member Functions | |
| GroupboxSizer (HWND pGroupbox, ISizer *pItem) | |
| void | SetOuterPadding (int pad) |
| virtual void | OnCalcSizes () |
| virtual void | OnRectChanged (int x, int y, int w, int h) |
| virtual size_t | GetItemCount () |
| virtual ISizer * | GetItem (size_t i) |
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 |
Associates a groupbox with a sizer item.
The item will fit perfectly into the groupbox. On the other hand, GetMinSize() returns how big the groupbox must be to fit its item, which is also handy.
| GroupboxSizer::GroupboxSizer | ( | HWND | pGroupbox, |
| ISizer * | pItem | ||
| ) |
| pGroupbox | The groupbox that this sizer should handle. |
| pItem | The item inside the groupbox. |
|
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 GroupboxSizer::SetOuterPadding | ( | int | pad | ) |
Set padding around this sizer.
1.8.3.1