PixelLightAPI
.
|
Standard command button. More...
#include <Button.h>
Public Member Functions | |
PLGUI_API | Button (Widget *pParent=nullptr) |
Constructor. | |
virtual PLGUI_API | ~Button () |
Destructor. | |
Protected Member Functions | |
virtual PLGUI_API void | OnButtonClicked () override |
virtual PLGUI_API void | OnDraw (Graphics &cGraphics) override |
Called to draw the widget. | |
virtual PLGUI_API PLMath::Vector2i | OnPreferredSize (const PLMath::Vector2i &vRefSize) const override |
Called when the widget is to calculate it's preferred size. | |
virtual PLGUI_API void | OnMouseEnter () override |
Called when the mouse has entered the widget. | |
virtual PLGUI_API void | OnMouseLeave () override |
Called when the mouse has left the widget. |
Standard command button.
PLGUI_API PLGui::Button::Button | ( | Widget * | pParent = nullptr | ) |
Constructor.
[in] | pParent | Pointer to the parent widget |
virtual PLGUI_API PLGui::Button::~Button | ( | ) | [virtual] |
Destructor.
virtual PLGUI_API void PLGui::Button::OnButtonClicked | ( | ) | [override, protected, virtual] |
Reimplemented from PLGui::AbstractButton.
virtual PLGUI_API void PLGui::Button::OnDraw | ( | Graphics & | cGraphics | ) | [override, protected, virtual] |
Called to draw the widget.
[in] | cGraphics | Graphics object used for painting |
Reimplemented from PLGui::WidgetFunctions.
virtual PLGUI_API PLMath::Vector2i PLGui::Button::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.
virtual PLGUI_API void PLGui::Button::OnMouseEnter | ( | ) | [override, protected, virtual] |
Called when the mouse has entered the widget.
Reimplemented from PLGui::AbstractButton.
virtual PLGUI_API void PLGui::Button::OnMouseLeave | ( | ) | [override, protected, virtual] |
Called when the mouse has left the widget.
Reimplemented from PLGui::AbstractButton.
|