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

Sizer adapter around a HWND. More...

#include <Sizer.h>

Inheritance diagram for WindowSizer:
ISizer

Public Member Functions

 WindowSizer (HWND pWindow)
 
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

Sizer adapter around a HWND.

You propably never directly use this class, because all sizers have shortcuts for inserting a window directly. These shortcuts make use of this class.

Constructor & Destructor Documentation

WindowSizer::WindowSizer ( HWND  pWindow)
Parameters
pWindowThe window that this sizer should handle.

Member Function Documentation

virtual void WindowSizer::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 WindowSizer::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 files: