24 #include "BasicSprite.h"    25 #include "BasicText.h"    28 #include "VertexArray.h"    32 #ifndef DOXYGEN_SHOULD_SKIP_THIS    55     TextWidget(std::string text, 
Font& font, 
unsigned characterSize = 30);
    59     virtual bool contains(
Vector2f coords) 
override;
    66     void setTextOutlineThickness(
float thickness);
    73     void setDisabledTextColor(
const Color4f &color);
    80     void setDisabledTextOutlineColor(
const Color4f &color);
    87     void setDefaultTextColor(
const Color4f &color);
    94     void setDefaultTextOutlineColor(
const Color4f &color);
   101     void setSelectedTextColor(
const Color4f &color);
   108     void setSelectedTextOutlineColor(
const Color4f &color);
   123       return m_basic.getLocalBounds();
   136     void setAnchor(
Anchor anchor);
   139     void updateCurrentStateColors();
   141     void updateGeometry();
   143     virtual void onStateChanged() 
override;
   155     Color4f m_disabledTextOutlineColor;
   158     Color4f m_defaultTextOutlineColor;
   161     Color4f m_selectedTextOutlineColor;
   183     virtual bool contains(
Vector2f coords) 
override;
   190     void setBackgroundOutlineThickness(
float thickness);
   197     void setDisabledBackgroundColor(
const Color4f &color);
   204     void setDisabledBackgroundOutlineColor(
const Color4f &color);
   211     void setDefaultBackgroundColor(
const Color4f &color);
   218     void setDefaultBackgroundOutlineColor(
const Color4f &color);
   225     void setSelectedBackgroundColor(
const Color4f &color);
   232     void setSelectedBackgroundOutlineColor(
const Color4f &color);
   255     void updateGeometry();
   257     virtual void onStateChanged() 
override;
   262     float m_backgroundOutlineThickness;
   264     Color4f m_disabledBackgroundColor;
   265     Color4f m_disabledBackgroundOutlineColor;
   267     Color4f m_defaultBackgroundColor;
   268     Color4f m_defaultBackgroundOutlineColor;
   270     Color4f m_selectedBackgroundColor;
   271     Color4f m_selectedBackgroundOutlineColor;
   309     virtual bool contains(
Vector2f coords) 
override;
   317     void setDisabledSprite(
const Texture& texture, 
const RectF& textureRect);
   325     void setDefaultSprite(
const Texture& texture, 
const RectF& textureRect);
   333     void setSelectedSprite(
const Texture& texture, 
const RectF& textureRect);
   347       return getSprite().getLocalBounds();
   360     void setAnchor(
Anchor anchor);
   363     void updateGeometry();
   365     virtual void onStateChanged() 
override;
   405     virtual bool contains(
Vector2f coords) 
override;
   414     void setChosen(
bool chosen = 
true);
   433     void setEmptySprite(
const Texture& texture, 
const RectF& textureRect);
   443     void setChosenSprite(
const Texture& texture, 
const RectF& textureRect);
   446     virtual void triggered() 
override;
   449     void updateGeometry();
   462 #ifndef DOXYGEN_SHOULD_SKIP_THIS   467 #endif // GF_WIDGETS_H A simple text widget. 
Definition: Widgets.h:45
 
A set of primitives. 
Definition: VertexArray.h:65
 
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:239
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
Specialized shape representing a rounded rectangle. 
Definition: Shapes.h:395
 
A text within a rounded rectangle widget. 
Definition: Widgets.h:170
 
A point associated with a color and a texture coordinate. 
Definition: Vertex.h:75
 
Definition: BasicText.h:47
 
RectF getLocalBounds() const
Get the local bounding rectangle of the entity. 
Definition: Widgets.h:122
 
A texture for colored images. 
Definition: Texture.h:339
 
void setPadding(float padding)
Set the padding around the text. 
Definition: Widgets.h:249
 
The namespace for gf classes. 
Definition: Action.h:34
 
A character font. 
Definition: Font.h:130
 
Anchor
An anchor of a box. 
Definition: Anchor.h:38
 
BasicText & getText()
Definition: Widgets.h:145
 
Definition: BasicSprite.h:43