PixelLightAPI  .
Public Member Functions | Public Attributes
PLGui::Panel Class Reference

Container widget that displays a raised or sunken panel. More...

#include <Panel.h>

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

List of all members.

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

EBorderStyle m_nBorderStyle

Detailed Description

Container widget that displays a raised or sunken panel.


Member Function Documentation

virtual PLGUI_API void PLGui::Panel::OnDraw ( Graphics cGraphics) [override, virtual]

Called to draw the widget.

Parameters:
[in]cGraphicsGraphics object used for painting

Reimplemented from PLGui::WidgetFunctions.

virtual PLGUI_API PLMath::Vector2i PLGui::Panel::OnPreferredSize ( const PLMath::Vector2i vRefSize) const [override, 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.

virtual PLGUI_API void PLGui::Panel::OnAdjustContent ( ) [override, virtual]

Called when the widget content has to be adjusted.

Reimplemented from PLGui::ContainerWidget.


Member Data Documentation

Border style


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