PixelLightAPI  .
Public Member Functions | Protected Member Functions
PLGui::CheckBox Class Reference

A check box that can have two or three states. More...

#include <CheckBox.h>

Inheritance diagram for PLGui::CheckBox:
Inheritance graph
[legend]

List of all members.

Public Member Functions

PLGUI_API CheckBox (Widget *pParent=nullptr)
 Constructor.
virtual PLGUI_API ~CheckBox ()
 Destructor.

Protected Member Functions

virtual void OnDraw (Graphics &cGraphics) override
 Called to draw the widget.
virtual PLMath::Vector2i OnPreferredSize (const PLMath::Vector2i &vRefSize) const override
 Called when the widget is to calculate it's preferred size.

Detailed Description

A check box that can have two or three states.


Constructor & Destructor Documentation

PLGUI_API PLGui::CheckBox::CheckBox ( Widget pParent = nullptr)

Constructor.

Parameters:
[in]pParentPointer to the parent widget
virtual PLGUI_API PLGui::CheckBox::~CheckBox ( ) [virtual]

Destructor.


Member Function Documentation

virtual void PLGui::CheckBox::OnDraw ( Graphics cGraphics) [override, protected, virtual]

Called to draw the widget.

Parameters:
[in]cGraphicsGraphics object used for painting

Reimplemented from PLGui::WidgetFunctions.

virtual PLMath::Vector2i PLGui::CheckBox::OnPreferredSize ( const PLMath::Vector2i vRefSize) const [override, protected, virtual]

Called when the widget is to calculate it's preferred size.

Parameters:
[in]vRefSizePrecalculated reference size, can be (-1, -1) if no reference size is available
Returns:
Preferred size
Remarks:
If the widget returns -1 in a component (X/Y), it means that there is no preferred size in that direction. A layout will in that case use 'as much space as possible', while the FitSize() functions will use the current size.

Reimplemented from PLGui::Widget.


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


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:19
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported