PixelLightAPI
.
|
Container widget that displays a border around it's content. More...
#include <Border.h>
Public Member Functions | |
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 | OnAdjustContent () override |
Called when the widget content has to be adjusted. | |
Public Attributes | |
ELineStyle | m_nLineStyle |
int | m_nBorderSize |
PLGraphics::Color4 | m_cBorderColor |
Container widget that displays a border around it's content.
virtual PLGUI_API void PLGui::Border::OnDraw | ( | Graphics & | cGraphics | ) | [override, virtual] |
Called to draw the widget.
[in] | cGraphics | Graphics object used for painting |
Reimplemented from PLGui::WidgetFunctions.
virtual PLGUI_API PLMath::Vector2i PLGui::Border::OnPreferredSize | ( | const PLMath::Vector2i & | vRefSize | ) | const [override, 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::Border::OnAdjustContent | ( | ) | [override, virtual] |
Called when the widget content has to be adjusted.
Reimplemented from PLGui::ContainerWidget.
Line style
Border size
|