- sf
- ui
- IText
An interface that allow component to have a text. More...
#include <IText.hpp>
Public Member Functions | |
virtual const sf::String & | getText () const =0 |
virtual void | setText (sf::String const &text)=0 |
Sets the text's string of the component Don't forget to set the font. More... | |
virtual const sf::Font * | getFont () const =0 |
virtual void | setFont (sf::Font const &font)=0 |
Sets the font of the component's text. More... | |
virtual unsigned int | getFontSize () const =0 |
virtual void | setFontSize (unsigned int size)=0 |
Set the font's size of the component. More... | |
virtual sf::Color | getFontColor () const =0 |
virtual void | setFontColor (sf::Color color)=0 |
Sets the color's font of the text. More... | |
An interface that allow component to have a text.
Implement it in your component to make faster components that use text.
|
pure virtual |
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::KeyField, sf::ui::CheckBox, and sf::ui::Label.
|
pure virtual |
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::KeyField, sf::ui::CheckBox, and sf::ui::Label.
|
pure virtual |
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::KeyField, sf::ui::CheckBox, and sf::ui::Label.
|
pure virtual |
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::KeyField, sf::ui::CheckBox, and sf::ui::Label.
|
pure virtual |
Sets the font of the component's text.
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::KeyField, sf::ui::CheckBox, and sf::ui::Label.
|
pure virtual |
Sets the color's font of the text.
color | the text's color |
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::KeyField, sf::ui::CheckBox, and sf::ui::Label.
|
pure virtual |
Set the font's size of the component.
size | the font's size |
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::KeyField, sf::ui::CheckBox, and sf::ui::Label.
|
pure virtual |
Sets the text's string of the component Don't forget to set the font.
text | the new string of the component |
Implemented in sf::ui::Button, sf::ui::TextField, sf::ui::CheckBox, and sf::ui::Label.