PixelLightAPI  .
Public Member Functions | Protected Member Functions | Protected Attributes
PLGui::ScrollWidget Class Reference

Container that allows it's content to be scrolled. More...

#include <ScrollWidget.h>

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

List of all members.

Public Member Functions

virtual PLGUI_API void OnSize (const PLMath::Vector2i &vSize) override
 Called when the widget gets resized.
virtual PLGUI_API void OnAdjustContent () override
 Called when the widget content has to be adjusted.

Protected Member Functions

void OnInnerWidgetSize (const PLMath::Vector2i &vSize)
 Called when the size of the inner window has changed.
void OnScrollBarXChanged (int nX)
 Called when the horizontal scrollbar has changed it's value.
void OnScrollBarYChanged (int nY)
 Called when the vertical scrollbar has changed it's value.
void AdjustScrollBars ()
 Show or hide scroll bars according to the widget size.

Protected Attributes

EScrollBarStyle m_nScrollBarStyleX
EScrollBarStyle m_nScrollBarStyleY
Widgetm_pInnerWidget
ScrollBarm_pScrollBarX
ScrollBarm_pScrollBarY
bool m_bScrollBarX
bool m_bScrollBarY

Detailed Description

Container that allows it's content to be scrolled.


Member Function Documentation

virtual PLGUI_API void PLGui::ScrollWidget::OnSize ( const PLMath::Vector2i vSize) [override, virtual]

Called when the widget gets resized.

Parameters:
[in]vSizeSize

Reimplemented from PLGui::WidgetFunctions.

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

Called when the widget content has to be adjusted.

Reimplemented from PLGui::ContainerWidget.

void PLGui::ScrollWidget::OnInnerWidgetSize ( const PLMath::Vector2i vSize) [protected]

Called when the size of the inner window has changed.

Parameters:
[in]vSizeSize
void PLGui::ScrollWidget::OnScrollBarXChanged ( int  nX) [protected]

Called when the horizontal scrollbar has changed it's value.

Parameters:
[in]nXNew X-position
void PLGui::ScrollWidget::OnScrollBarYChanged ( int  nY) [protected]

Called when the vertical scrollbar has changed it's value.

Parameters:
[in]nYNew Y-position

Show or hide scroll bars according to the widget size.


Member Data Documentation

EScrollBarStyle PLGui::ScrollWidget::m_nScrollBarStyleX [protected]

Scrollbar style for horizontal scrollbar

EScrollBarStyle PLGui::ScrollWidget::m_nScrollBarStyleY [protected]

Scrollbar style for vertical scrollbar

Innermost widget that is scrolled

Scroll bar (horizontal)

Scroll bar (vertical)

Is a horizontal scrollbar visible?

Is a vertical scrollbar visible?


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