29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 57 virtual bool contains(
Vector2f coords)
override;
64 void setTextOutlineThickness(
float thickness);
71 void setDisabledTextColor(
const Color4f &color);
78 void setDisabledTextOutlineColor(
const Color4f &color);
85 void setDefaultTextColor(
const Color4f &color);
92 void setDefaultTextOutlineColor(
const Color4f &color);
99 void setSelectedTextColor(
const Color4f &color);
106 void setSelectedTextOutlineColor(
const Color4f &color);
115 float m_textOutlineThickness;
118 Color4f m_disabledTextOutlineColor;
121 Color4f m_defaultTextOutlineColor;
124 Color4f m_selectedTextOutlineColor;
145 virtual bool contains(
Vector2f coords)
override;
152 void setBackgroundOutlineThickness(
float thickness);
159 void setDisabledBackgroundColor(
const Color4f &color);
166 void setDisabledBackgroundOutlineColor(
const Color4f &color);
173 void setDefaultBackgroundColor(
const Color4f &color);
180 void setDefaultBackgroundOutlineColor(
const Color4f &color);
187 void setSelectedBackgroundColor(
const Color4f &color);
194 void setSelectedBackgroundOutlineColor(
const Color4f &color);
198 float m_shapeOutlineThickness;
200 Color4f m_disabledBackgroundColor;
201 Color4f m_disabledBackgroundOutlineColor;
203 Color4f m_defaultBackgroundColor;
204 Color4f m_defaultBackgroundOutlineColor;
206 Color4f m_selectedBackgroundColor;
207 Color4f m_selectedBackgroundOutlineColor;
244 void updateGeometry();
287 void setDisabledSprite(
Sprite& sprite);
294 void setDefaultSprite(
Sprite& sprite);
301 void setSelectedSprite(
Sprite& sprite);
305 virtual bool contains(
Vector2f coords)
override;
336 void setChosen(
bool chosen =
true);
354 void setEmptySprite(
Sprite& sprite);
363 void setChosenSprite(
Sprite& sprite);
366 virtual void triggered()
override;
369 void updateSprites();
377 #ifndef DOXYGEN_SHOULD_SKIP_THIS 382 #endif // GF_WIDGETS_H Base class for textured shapes with outline.
Definition: Shape.h:73
A text within a representative shape widget.
Definition: Widgets.h:133
A simple text widget.
Definition: Widgets.h:45
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:66
void setRadius(float radius)
Set the radius of the corners.
Definition: Widgets.h:228
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Specialized shape representing a rounded rectangle.
Definition: Shapes.h:395
Text & getText()
Definition: Widgets.h:109
A text within a rounded rectangle widget.
Definition: Widgets.h:216
A drawable representation of a texture, with its own transformations, color, etc. ...
Definition: Sprite.h:87
Graphical text that can be drawn to a render target.
Definition: Text.h:91
void setPadding(float padding)
Set the padding around the text.
Definition: Widgets.h:238
The namespace for gf classes.
Definition: Action.h:34