Sizer
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
EmptySizer Class Reference

A block of empty space. More...

#include <Sizer.h>

Inheritance diagram for EmptySizer:
ISizer

Public Member Functions

 EmptySizer (int minW=0, int minH=0)
 
virtual void OnCalcSizes ()
 
virtual void OnRectChanged (int x, int y, int w, int h)
 
- Public Member Functions inherited from ISizer
virtual size_t GetItemCount ()
 
virtual ISizerGetItem (size_t i)
 
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
 

Detailed Description

A block of empty space.

This is only necessary if the empty space needs a minimum size. Because otherwise a nullpointer can be inserted into a BoxSizer and GridSizer.

Constructor & Destructor Documentation

EmptySizer::EmptySizer ( int  minW = 0,
int  minH = 0 
)
inline
Parameters
minWMinimum size that this sizer should have.
minHMinimum size that this sizer should have.

Member Function Documentation

virtual void EmptySizer::OnCalcSizes ( )
inlinevirtual

Calculates sizes, but does not move the sizer in any way.

Note
ISizer::minimumSize should be calculated here, because that's the place where it makes sense.

Implements ISizer.

virtual void EmptySizer::OnRectChanged ( int  x,
int  y,
int  w,
int  h 
)
inlinevirtual

Moves the sizer and all children.

This function will always be called, even if the sizer is not dirty.

Implements ISizer.


The documentation for this class was generated from the following file: