PixelLightAPI  .
Public Member Functions
PLGui::WidgetHandler Class Reference

Widget handler class. More...

#include <WidgetHandler.h>

List of all members.

Public Member Functions

PLGUI_API WidgetHandler ()
 Constructor.
PLGUI_API WidgetHandler (const WidgetHandler &cOther)
 Copy constructor.
PLGUI_API ~WidgetHandler ()
 Destructor.
PLGUI_API WidgetGetWidget () const
 Get widget pointer.
PLGUI_API bool SetWidget (Widget *pWidget)
 Set widget pointer.
PLGUI_API void Clear ()
 Clear widget pointer.
PLGUI_API bool IsValid () const
 Check if the widget pointer is valid.
PLGUI_API bool operator== (const WidgetHandler &cOther) const
 Compare operator.
PLGUI_API WidgetHandleroperator= (const WidgetHandler &cOther)
 Assignment operator.

Detailed Description

Widget handler class.

Remarks:
A widget handler is a smart pointer to widgets. Use it whenever you want to store a pointer to a widget for a longer time, this way you can be sure that the pointer will be reset to a null pointer if the widget has been destroyed in the meantime.

Constructor & Destructor Documentation

Constructor.

PLGUI_API PLGui::WidgetHandler::WidgetHandler ( const WidgetHandler cOther)

Copy constructor.

Parameters:
[in]cOtherWidget handler

Destructor.


Member Function Documentation

Get widget pointer.

Returns:
Pointer to widget, can be a null pointer
PLGUI_API bool PLGui::WidgetHandler::SetWidget ( Widget pWidget)

Set widget pointer.

Parameters:
[in]pWidgetPointer to widget, can be a null pointer
Returns:
'true' if all went fine, else 'false'
PLGUI_API void PLGui::WidgetHandler::Clear ( )

Clear widget pointer.

PLGUI_API bool PLGui::WidgetHandler::IsValid ( ) const

Check if the widget pointer is valid.

Returns:
'true' if the handler points to a valid widget, else 'false'
PLGUI_API bool PLGui::WidgetHandler::operator== ( const WidgetHandler cOther) const

Compare operator.

Parameters:
[in]cOtherWidget handler
Returns:
'true' if equal, else 'false'
PLGUI_API WidgetHandler& PLGui::WidgetHandler::operator= ( const WidgetHandler cOther)

Assignment operator.

Parameters:
[in]cOtherWidget handler
Returns:
Reference to this object

The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:32
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported