Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

LayoutablePanel Class Reference

this Panel saves its position in the gameoptions and loads it on construction More...

#include <windowing.h>

Inheritance diagram for LayoutablePanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 LayoutablePanel (PG_Widget *parent, const PG_Rect &r, const ASCString &panelName_, bool loadTheme=true)

Protected Member Functions

void eventMoveWidget (int x, int y)
 Callback for the MoveWidget event.
void eventHide ()
 overridable eventhandler called whenever the widget gets hidden.
void eventShow ()
 overridable eventhandler called whenever the widget gets shown.

Detailed Description

this Panel saves its position in the gameoptions and loads it on construction

Definition at line 121 of file windowing.h.


Constructor & Destructor Documentation

LayoutablePanel::LayoutablePanel PG_Widget parent,
const PG_Rect r,
const ASCString panelName_,
bool  loadTheme = true
 

Definition at line 959 of file windowing.cpp.


Member Function Documentation

void LayoutablePanel::eventHide  )  [protected, virtual]
 

overridable eventhandler called whenever the widget gets hidden.

Reimplemented from PG_Widget.

Definition at line 994 of file windowing.cpp.

References PG_Widget::eventHide(), PG_Application::GetScreenWidth(), CGameOptions::Instance(), PG_Rect::my_xpos, PG_Rect::my_ypos, CGameOptions::PanelData::visible, CGameOptions::PanelData::x, and CGameOptions::PanelData::y.

void LayoutablePanel::eventMoveWidget int  x,
int  y
[protected, virtual]
 

Callback for the MoveWidget event.

Parameters:
x new x position
y new y position This virtual function can be used to implement custom behavior for MoveWidget events.

Reimplemented from PG_Widget.

Definition at line 983 of file windowing.cpp.

References PG_Widget::eventMoveWidget(), PG_Application::GetScreenWidth(), CGameOptions::Instance(), CGameOptions::PanelData::visible, CGameOptions::PanelData::x, and CGameOptions::PanelData::y.

void LayoutablePanel::eventShow  )  [protected, virtual]
 

overridable eventhandler called whenever the widget gets shown.

Reimplemented from PG_Widget.

Definition at line 1006 of file windowing.cpp.

References PG_Widget::eventShow(), PG_Application::GetScreenWidth(), CGameOptions::Instance(), PG_Rect::my_xpos, PG_Rect::my_ypos, CGameOptions::PanelData::visible, CGameOptions::PanelData::x, and CGameOptions::PanelData::y.


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:17:52 2008 for Advanced Strategic Command by  doxygen 1.4.2