My Project
SallyAPI::GUI::CGUIBaseObject Class Reference

Cgui base object. More...

#include <GUIBaseObject.h>

Inheritance diagram for SallyAPI::GUI::CGUIBaseObject:
SallyAPI::Core::CBaseObject SallyAPI::GUI::CControl SallyAPI::GUI::CWindow SallyAPI::GUI::CBreadcrumb SallyAPI::GUI::CButton SallyAPI::GUI::CCheckbox SallyAPI::GUI::CDropDown SallyAPI::GUI::CEdit SallyAPI::GUI::CForm SallyAPI::GUI::CHorizontalSeperator SallyAPI::GUI::CImageBox SallyAPI::GUI::CLabel SallyAPI::GUI::CProcessbar SallyAPI::GUI::CRadioButton SallyAPI::GUI::CScreensaverControlButton SallyAPI::GUI::CScrollbar SallyAPI::GUI::CSlider SallyAPI::GUI::CVerticalSeperator

List of all members.

Public Member Functions

 CGUIBaseObject (CGUIBaseObject *parent)
 Constructor.
virtual ~CGUIBaseObject ()
 Destructor.
int GetWidth ()
 Gets the width.
int GetHeight ()
 Gets the height.
int GetPositionX ()
 Gets the position x coordinate coordinate.
int GetPositionY ()
 Gets the position y coordinate coordinate.
SallyAPI::GUI::CGUIBaseObjectGetParent ()
 Gets the parent of this item.
virtual void SetAlphaBlending (int alphaBlending)
 Sets an alpha blending.
virtual int GetAlphaBlending ()
 Gets the alpha blending.
virtual void SetRotationAngleY (float angle)
 Sets a rotation angle y coordinate coordinate.
virtual float GetRotationAngleY ()
 Gets the rotation angle y coordinate coordinate.
virtual void SetRotationAngleX (float angle)
 Sets a rotation angle x coordinate coordinate.
virtual float GetRotationAngleX ()
 Gets the rotation angle x coordinate coordinate.
virtual void SetRotationAngleZ (float angle)
 Sets a rotation angle z coordinate coordinate.
virtual float GetRotationAngleZ ()
 Gets the rotation angle z coordinate coordinate.
virtual void SetText (const std::string &text)
 Sets a text.
virtual std::string GetText ()
 Gets the text.
virtual void GetAbsolutPosition (int *x, int *y)
 Gets an absolut position.
virtual void SendMessageToParent (SallyAPI::GUI::CGUIBaseObject *reporter, int iReporterID, int iMessageID, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)=0
virtual void SendMessageToChilds (SallyAPI::GUI::CGUIBaseObject *reporter, int iReporterID, int iMessageID, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)=0
virtual void Timer (float timeDelta)
 Timers.
virtual void Render ()
 Renders this object.
virtual void Update ()
 Updates this object.

Protected Member Functions

void DrawImage (int gui, int x, int y)
 Draw image.
void DrawImagePart (int gui, int x, int y, int srcX, int srcY, int srcW, int srcH)
 Draw image part.
void DrawImage (int gui, int x, int y, int width, int height)
 Draw image.
void EnterRenderLock ()
 Enter render lock.
void LeaveRenderLock ()
 Leave render lock.
virtual void RenderControl ()=0
virtual void UpdateControl ()=0
SallyAPI::GUI::CPictureGetPicture (int gui)
 Gets an image.
RECT GetImageRect (int gui)
 Gets an image rectangle.

Protected Attributes

CRITICAL_SECTION m_critSectLockRender
std::string m_strText
float m_fTimeDelta
SallyAPI::GUI::CGUIBaseObjectm_pParent
bool m_bUpdateRequested
int m_iX
int m_iY
int m_iXAbsolut
int m_iYAbsolut
int m_iWidth
int m_iHeight
int m_iAlphaBlending
float m_fAngleY
float m_fAngleX
float m_fAngleZ

Detailed Description

Cgui base object.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

Constructor.

Author:
Christian Knobloch
Date:
30.04.2010
Parameters:
[in,out]parentIf non-null, the parent.

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

void CGUIBaseObject::DrawImage ( int  gui,
int  x,
int  y 
) [protected]

Draw image.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
guiThe graphical user interface.
xThe x coordinate.
yThe y coordinate.
void CGUIBaseObject::DrawImage ( int  gui,
int  x,
int  y,
int  width,
int  height 
) [protected]

Draw image.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
guiThe graphical user interface.
xThe x coordinate.
yThe y coordinate.
widthThe width.
heightThe height.
void CGUIBaseObject::DrawImagePart ( int  gui,
int  x,
int  y,
int  srcX,
int  srcY,
int  srcW,
int  srcH 
) [protected]

Draw image part.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
guiThe graphical user interface.
xThe x coordinate.
yThe y coordinate.
srcXSource x coordinate.
srcYSource y coordinate.
srcWSource w.
srcHSource h.
void CGUIBaseObject::EnterRenderLock ( ) [protected]

Enter render lock.

Author:
Christian Knobloch
Date:
19.04.2010
void CGUIBaseObject::GetAbsolutPosition ( int *  x,
int *  y 
) [virtual]

Gets an absolut position.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]xIf non-null, the x coordinate.
[in,out]yIf non-null, the y coordinate.

Reimplemented in SallyAPI::GUI::CWindow.

Gets the alpha blending.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The alpha blending.

Gets the height.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The height.
RECT CGUIBaseObject::GetImageRect ( int  gui) [protected]

Gets an image rectangle.

Author:
Christian Knobloch
Date:
03.05.2010
Parameters:
guiThe graphical user interface.
Returns:
The image rectangle.

Gets the parent of this item.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
null if it fails, else the parent.

Gets an image.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
guiThe graphical user interface.
Returns:
null if it fails, else the image.

Gets the position x coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The position x coordinate coordinate.

Gets the position y coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The position y coordinate coordinate.
float CGUIBaseObject::GetRotationAngleX ( ) [virtual]

Gets the rotation angle x coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The rotation angle x coordinate coordinate.
float CGUIBaseObject::GetRotationAngleY ( ) [virtual]

Gets the rotation angle y coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The rotation angle y coordinate coordinate.
float CGUIBaseObject::GetRotationAngleZ ( ) [virtual]

Gets the rotation angle z coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The rotation angle z coordinate coordinate.
std::string CGUIBaseObject::GetText ( ) [virtual]

Gets the text.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The text.

Reimplemented in SallyAPI::GUI::CScreensaverControlLabel.

Gets the width.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The width.
void CGUIBaseObject::LeaveRenderLock ( ) [protected]

Leave render lock.

Author:
Christian Knobloch
Date:
19.04.2010
void CGUIBaseObject::Render ( ) [virtual]

Renders this object.

Author:
Christian Knobloch
Date:
19.04.2010

Reimplemented in SallyAPI::GUI::CControl, SallyAPI::GUI::CForm, SallyAPI::GUI::CPopUpWindow, and SallyAPI::GUI::CWindow.

void CGUIBaseObject::SetAlphaBlending ( int  alphaBlending) [virtual]

Sets an alpha blending.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
alphaBlendingThe alpha blending.

Reimplemented in SallyAPI::GUI::CListView, SallyAPI::GUI::CListViewExt, SallyAPI::GUI::CForm, and SallyAPI::GUI::CScrollList.

void CGUIBaseObject::SetRotationAngleX ( float  angle) [virtual]

Sets a rotation angle x coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
angleThe angle.
void CGUIBaseObject::SetRotationAngleY ( float  angle) [virtual]

Sets a rotation angle y coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
angleThe angle.
void CGUIBaseObject::SetRotationAngleZ ( float  angle) [virtual]

Sets a rotation angle z coordinate coordinate.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
angleThe angle.
void CGUIBaseObject::SetText ( const std::string &  text) [virtual]

Sets a text.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
textThe text.

Reimplemented in SallyAPI::GUI::CControl, SallyAPI::GUI::CEdit, SallyAPI::GUI::CLabelBox, SallyAPI::GUI::CEditBox, and SallyAPI::GUI::CScreensaverControlLabel.

void CGUIBaseObject::Update ( ) [virtual]

Updates this object.

Author:
Christian Knobloch
Date:
30.04.2010

Reimplemented in SallyAPI::GUI::CControl, SallyAPI::GUI::CForm, and SallyAPI::GUI::CWindow.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines