PixelLightAPI
.
|
A check box that can have two or three states. More...
#include <CheckBox.h>
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. |
A check box that can have two or three states.
PLGUI_API PLGui::CheckBox::CheckBox | ( | Widget * | pParent = nullptr | ) |
Constructor.
[in] | pParent | Pointer to the parent widget |
virtual PLGUI_API PLGui::CheckBox::~CheckBox | ( | ) | [virtual] |
Destructor.
virtual void PLGui::CheckBox::OnDraw | ( | Graphics & | cGraphics | ) | [override, protected, virtual] |
Called to draw the widget.
[in] | cGraphics | Graphics 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.
[in] | vRefSize | Precalculated reference size, can be (-1, -1) if no reference size is available |
Reimplemented from PLGui::Widget.
|