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

A radio button. More...

#include <RadioButton.h>

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

List of all members.

Public Member Functions

PLGUI_API RadioButton (Widget *pParent=nullptr)
 Constructor.
virtual PLGUI_API ~RadioButton ()
 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 radio button.


Constructor & Destructor Documentation

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

Constructor.

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

Destructor.


Member Function Documentation

virtual void PLGui::RadioButton::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::RadioButton::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.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:33
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported