26 CGUISpinControlEx(
int parentID,
int controlID,
float posX,
float posY,
float width,
float height,
float spinWidth,
float spinHeight,
const CLabelInfo& spinInfo,
const CTextureInfo &textureFocus,
const CTextureInfo &textureNoFocus,
const CTextureInfo& textureUp,
const CTextureInfo& textureDown,
const CTextureInfo& textureUpFocus,
const CTextureInfo& textureDownFocus,
const CTextureInfo& textureUpDisabled,
const CTextureInfo& textureDownDisabled,
const CLabelInfo& labelInfo,
int iType);
30 void Process(
unsigned int currentTime, CDirtyRegionList &dirtyregions)
override;
31 void Render()
override;
32 void SetPosition(
float posX,
float posY)
override;
33 float GetWidth()
const override {
return m_buttonControl.GetWidth(); }
34 void SetWidth(
float width)
override;
35 float GetHeight()
const override {
return m_buttonControl.GetHeight(); }
36 void SetHeight(
float height)
override;
37 void AllocResources()
override;
38 void FreeResources(
bool immediately =
false)
override;
39 void DynamicResourceAlloc(
bool bOnOff)
override;
40 void SetInvalid()
override;
41 const std::string GetCurrentLabel()
const;
42 void SetText(
const std::string& aLabel) { m_buttonControl.SetLabel(aLabel); }
43 void SetEnabled(
bool bEnable)
override;
44 float GetXPosition()
const override {
return m_buttonControl.GetXPosition(); }
45 float GetYPosition()
const override {
return m_buttonControl.GetYPosition(); }
46 std::string GetDescription()
const override;
48 void SetSpinPosition(
float spinPosX);
50 void SetItemInvalid(
bool invalid);
52 void RenderText(
float posX,
float posY,
float width,
float height)
override;
Definition: GUIListItem.h:29
Definition: GUISpinControl.h:31
Definition: GUITexture.h:51
bool HitTest(const CPoint &point) const override
Used to test whether the point is inside a control.
Definition: GUISpinControlEx.h:47
Definition: GUILabel.h:22
Definition: GUISpinControlEx.h:23
virtual bool HitTest(const CPoint &point) const
Used to test whether the point is inside a control.
Definition: GUIControl.cpp:578
void RenderText(float posX, float posY, float width, float height) override
Render the spinner text.
Definition: GUISpinControlEx.cpp:136