SkyGI::InfoPanelNode Class Reference

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

Public Member Functions

 InfoPanelNode (InfoPanel *pParent, const Rect rFrame, unsigned int nWindowLayoutFlags)
 ~InfoPanelNode ()
virtual void Paint (const Rect &rDirty)
virtual void MouseDown (const InputEvent &nInputEvent)
virtual void Collapse ()
virtual void Expand ()
virtual void Toggle ()
virtual bool IsCollapsed ()
virtual void SetTitle (const String &cTitle)
virtual int Show (bool bSynchron=true)
virtual int Hide ()

Classes

class  Private

Detailed Description

Examples:

infopanel.cpp.


Constructor & Destructor Documentation

InfoPanelNode::InfoPanelNode ( InfoPanel pParent,
const Rect  rFrame,
unsigned int  nWindowLayoutFlags 
)

InfoPanelNode::~InfoPanelNode (  ) 


Member Function Documentation

void InfoPanelNode::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::LayoutView.

void InfoPanelNode::MouseDown ( const InputEvent nInputEvent  )  [virtual]

Mouse pressed

Description:
This function gets called when a mouse press occured inside this window.
Overload this member function to react on mouse presses.
Parameters:
nButton - MouseButton which was pressed
nMouseButtonMask - Mask showing which mouse buttons were pressed when the mouse press occured
nInputEvent - INPUT_EVENT_MOUSE_PRESS for a single and INPUTE_EVENT_MOUSE_DOUBLECLICK for a doubleclick

Reimplemented from SkyGI::Window.

void InfoPanelNode::Collapse (  )  [virtual]

void InfoPanelNode::Expand (  )  [virtual]

void InfoPanelNode::Toggle (  )  [virtual]

bool InfoPanelNode::IsCollapsed (  )  [virtual]

void InfoPanelNode::SetTitle ( const String cTitle  )  [virtual]

Set the window title

Description:
Sets the internal window title. If you want to set the title for an ApplicationWindow use ApplicationWindow::SetTitle. A TitleWindow always shows the title from the top-level window
Note:
This function will not redraw the TitleWindow, use ApplicationWindow::SetTitle instead
See also:
ApplicationWindow::SetTitle, GetTitle

Reimplemented from SkyGI::Window.

Examples:
infopanel.cpp.

int InfoPanelNode::Show ( bool  bSynchron = true  )  [virtual]

Make window visible

Description:
Makes the window visible. If bSynchron is true the window will be displayed immediately. If bSynchron is false a message will be sent to message queue to actually show this window after initial redraw messages or to draw into the window right after the Show() call but before it gets visible.
Returns:
0

Reimplemented from SkyGI::Window.

int InfoPanelNode::Hide (  )  [virtual]

Make window invisible

Description:
Makes the window nvisible
Returns:
0

Reimplemented from SkyGI::Window.


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