SkyGI::LayoutView Class Reference

Inheritance diagram for SkyGI::LayoutView:
[legend]
Collaboration diagram for SkyGI::LayoutView:
[legend]
List of all members.

Public Member Functions

 LayoutView (Window *pParent, const Rect &rFrame, unsigned int nWindowLayoutFlags)
 ~LayoutView ()
void Paint (const Rect &rDirty)
virtual LayoutViewNodeAdd (Window *pChild, int iWeight, unsigned int uiLayoutViewFlags)
virtual LayoutViewNodeAddRatio (Window *pChild, float fRatio, unsigned int uiLayoutViewFlags)
virtual LayoutViewNodeAddSpace (int iSpace, int iWeight)
virtual void Remove (Window *pChild)
virtual void Remove (LayoutViewNode *pNode)
virtual void Sized (const Point &cDelta)
virtual void ReLayout (const Point &cDelta=Point(0, 0))
virtual int GetMaxSize ()
virtual Point GetNodeSize (LayoutViewNode *pNode)
virtual int ComputeSize (LayoutViewNode *pNode, int iMaxSize)
virtual LayoutViewNodeGetByWindow (Window *pWindow)
virtual LayoutViewNodeFind (Window *pChild)
virtual LayoutViewNodeGet (int iIndex)
virtual int Count ()
virtual void SameSize (LayoutViewSize nSize, int iMinumumSize=0, int iMaximumSize=INT_MAX)=0
virtual void SameSize (int iPixels)=0

Protected Attributes

Privatem

Classes

class  Private

Detailed Description

Examples:

layoutview.cpp.


Constructor & Destructor Documentation

LayoutView::LayoutView ( Window pParent,
const Rect rFrame,
unsigned int  nWindowLayoutFlags 
)

LayoutView::~LayoutView (  ) 


Member Function Documentation

void LayoutView::Paint ( const Rect rDirty  )  [virtual]

Paint window content

Description:
This function gets called whenever an area of the window has to be redrawn. Usually you should only draw from inside the Paint function. If you need to redraw a window (when lets say some content must be updated), simply call Invalidate() which will then (asynchronly) call this paint function.

Usually you should draw the background using Window::DrawBackground(rDirty) and the border with DrawBorder(rRect). This way the user has full control over the appearance of your window, meaning he can change the background and border style.
The window content area itself is defined by the border margin and the window margin. Every window may define a margin. If you draw content into this window always make sure to not draw into the margin area. Additionally, the border has a margin too. As the user has full control to select any border for your window make sure to user the current borders margin when drawing window content. the dra Window::Paint() just redraws the background using DrawBackground. Overload this member function to add custom dawing code
Overload this member function to add custom dawing code
Parameters:
rDirty - Dirty rectangular region which has to be redrawn. Prior entering this function the painters clip region is automatically set to this dirty region.
See also:
DrawBorder, DrawBackground, Border, GetBorder, GetBorder::Margin, GetMargin

Reimplemented from SkyGI::View.

Reimplemented in SkyGI::FindBar, SkyGI::InfoPanelNode, and SkyGI::StatusLayoutView.

LayoutViewNode * LayoutView::Add ( Window pChild,
int  iWeight,
unsigned int  uiLayoutViewFlags 
) [virtual]

LayoutViewNode * LayoutView::AddRatio ( Window pChild,
float  fRatio,
unsigned int  uiLayoutViewFlags 
) [virtual]

LayoutViewNode * LayoutView::AddSpace ( int  iSpace,
int  iWeight 
) [virtual]

void LayoutView::Remove ( Window pChild  )  [virtual]

void LayoutView::Remove ( LayoutViewNode pNode  )  [virtual]

void LayoutView::Sized ( const Point cDelta  )  [virtual]

Called when window is resized

Description:
Overload this function to get notified when the window is resized
Note:
Call this function from the overloaded function to perform automatic window layout on child windows
Parameters:
pDelta - Size the window was resized
See also:
MoveTo, MoveBy, SetRect, Moved, Layout

Reimplemented from SkyGI::Window.

Reimplemented in SkyGI::InfoPanel.

void LayoutView::ReLayout ( const Point cDelta = Point(0, 0)  )  [virtual]

Reimplemented in SkyGI::LayoutViewHorizontal, and SkyGI::LayoutViewVertical.

int LayoutView::GetMaxSize (  )  [virtual]

Reimplemented in SkyGI::LayoutViewHorizontal, and SkyGI::LayoutViewVertical.

Point LayoutView::GetNodeSize ( LayoutViewNode pNode  )  [virtual]

Reimplemented in SkyGI::LayoutViewHorizontal, and SkyGI::LayoutViewVertical.

int LayoutView::ComputeSize ( LayoutViewNode pNode,
int  iMaxSize 
) [virtual]

Reimplemented in SkyGI::LayoutViewHorizontal, and SkyGI::LayoutViewVertical.

LayoutViewNode * LayoutView::GetByWindow ( Window pWindow  )  [virtual]

LayoutViewNode * LayoutView::Find ( Window pChild  )  [virtual]

LayoutViewNode * LayoutView::Get ( int  iIndex  )  [virtual]

int LayoutView::Count (  )  [virtual]

virtual void SkyGI::LayoutView::SameSize ( LayoutViewSize  nSize,
int  iMinumumSize = 0,
int  iMaximumSize = INT_MAX 
) [pure virtual]

Implemented in SkyGI::LayoutViewHorizontal, and SkyGI::LayoutViewVertical.

virtual void SkyGI::LayoutView::SameSize ( int  iPixels  )  [pure virtual]

Implemented in SkyGI::LayoutViewHorizontal, and SkyGI::LayoutViewVertical.


Member Data Documentation

Private* SkyGI::LayoutView::m [protected]


Generated on Thu Dec 13 18:14:28 2007 for SkyGI by  doxygen 1.5.1-p1