43 #include "colourvalue.h"
44 #include "UI/uienumerations.h"
45 #include "UI/widget.h"
51 class VerticalScrollbar;
52 class VerticalContainer;
81 friend class ListBoxFactory;
124 virtual void ProtoSerializeProperties(
XML::Node& SelfRoot)
const;
126 virtual void ProtoDeSerializeProperties(
const XML::Node& SelfRoot);
129 static String GetSerializableName();
172 virtual void ScrollerSizeCheck();
174 virtual void ScrollHideCheck();
176 virtual void SelectionSizeCheck(UI::Caption* Selection);
186 ListBox(ConstString& name, const Rect& RendRect, const UI::ScrollbarStyle& ScrollStyle, Screen* PScreen);
194 virtual ListBox& SetTemplateSize(const Vector2& Size, bool Relative = true);
200 virtual ListBox& SetTemplateGlyphIndex(const Whole& Glyph);
205 virtual ListBox& SetTemplateTextColour(const ColourValue& TextColour);
210 virtual ListBox& SetTemplateTextScale(const Real& Scale);
215 virtual ListBox& SetTemplateCursorOffset(const Whole& Offset);
220 virtual ListBox& SetTemplateBackgroundColour(const ColourValue& BackgroundColour);
225 virtual ListBox& SetTemplateHorizontalAlign(const UI::LinearAlignment& HorAlign);
230 virtual ListBox& SetTemplateVerticalAlign(const UI::LinearAlignment& VertAlign);
235 virtual ListBox& SetTemplateRenderPriority(const UI::RenderPriority& Priority);
238 virtual const UI::TemplateParams& GetTemplateInfo();
245 virtual Caption* AddSelection(ConstString& name, ConstString &Text, ConstString& BackgroundSprite = "");
249 virtual Caption* GetSelection(ConstString &Name);
252 virtual void DestroySelection(Caption* ToBeDestroyed);