40 #ifndef _uiscrollbar_h
41 #define _uiscrollbar_h
43 #include "uienumerations.h"
44 #include "UI/pageprovider.h"
45 #include "UI/widgetfactory.h"
118 virtual void SubscribeToChildEvents();
122 virtual Real GetScrollRange()
const;
126 virtual Real GetUpperScrollLimit()
const = 0;
130 virtual Real GetLowerScrollLimit()
const = 0;
134 virtual bool MouseScroll(
const Vector2& MouseDelta) = 0;
139 virtual bool ScrollBackScroll(
const Vector2& HitPosition) = 0;
143 virtual bool ButtonScroll(
Button* TheButton) = 0;
165 virtual void SetScrollerValue(
const Real& Value) = 0;
170 virtual Real GetScrollerValue()
const = 0;
173 virtual void SetScrollerSize(
const Real& Size) = 0;
176 virtual Real GetScrollerSize()
const = 0;
180 virtual void SetIncrementDistance(
const Real& IncDist);
183 virtual Real GetIncrementDistance()
const;
190 virtual Button* GetScroller()
const;
193 virtual Button* GetUpLeftButton()
const;
196 virtual Button* GetDownRightButton()
const;
199 virtual Button* GetScrollBack()
const;
205 virtual void ProtoSerializeProperties(
XML::Node& SelfRoot)
const;
207 virtual void ProtoDeSerializeProperties(
const XML::Node& SelfRoot);
210 static String GetSerializableName();
218 virtual void _OnScrollValueChanged(
const Real OldValue,
const Real NewValue);