TGUI
0.7.8
|
Public Member Functions | |
TextBoxRenderer (TextBox *textBox) | |
Constructor. More... | |
virtual void | setProperty (std::string property, const std::string &value) override |
Change a property of the renderer. More... | |
virtual void | setProperty (std::string property, ObjectConverter &&value) override |
Change a property of the renderer. More... | |
virtual ObjectConverter | getProperty (std::string property) const override |
Retrieve the value of a certain property. More... | |
virtual std::map< std::string, ObjectConverter > | getPropertyValuePairs () const override |
Get a map with all properties and their values. More... | |
void | setBackgroundColor (const Color &backgroundColor) |
Set the background color that will be used inside the text box. More... | |
void | setTextColor (const Color &textColor) |
Set the text color that will be used inside the text box. More... | |
void | setSelectedTextColor (const Color &selectedTextColor) |
Set the text color of the selected text that will be used inside the text box. More... | |
void | setSelectedTextBackgroundColor (const Color &selectedTextBackgroundColor) |
Set the background color of the selected text that will be used inside the text box. More... | |
void | setBorderColor (const Color &borderColor) |
Set the border color that will be used inside the text box. More... | |
void | setCaretColor (const Color &caretColor) |
Set the color that will be used inside the text box for the blinking caret. More... | |
void | setCaretWidth (float width) |
This will change the width of the blinking caret. More... | |
void | setBackgroundTexture (const Texture &texture) |
Changes the background image. More... | |
virtual void | setPadding (const Padding &padding) override |
Changes the padding of the text box. More... | |
virtual void | setPadding (const Padding &padding) |
Changes the size of the padding. More... | |
void | setPadding (float leftPadding, float topPadding, float rightPadding, float bottomPadding) |
Changes the size of the padding. More... | |
void | setPadding (float width, float height) |
Changes the size of the padding. More... | |
Public Member Functions inherited from tgui::WidgetRenderer | |
virtual | ~WidgetRenderer () |
Virtual destructor. | |
Public Member Functions inherited from tgui::WidgetBorders | |
virtual void | setBorders (const Borders &borders) |
Changes the size of the borders. More... | |
void | setBorders (float leftBorder, float topBorder, float rightBorder, float bottomBorder) |
Changes the size of the borders. More... | |
void | setBorders (float width, float height) |
Changes the size of the borders. More... | |
virtual Borders | getBorders () const |
Returns the size of the borders as a tgui::Borders. More... | |
Public Member Functions inherited from tgui::WidgetPadding | |
void | setPadding (float leftPadding, float topPadding, float rightPadding, float bottomPadding) |
Changes the size of the padding. More... | |
void | setPadding (float width, float height) |
Changes the size of the padding. More... | |
virtual Padding | getPadding () const |
Returns the size of the padding. More... | |
|
inline |
Constructor.
textBox | The text box that is connected to the renderer |
|
overridevirtual |
Retrieve the value of a certain property.
property | The property that you would like to retrieve |
Reimplemented from tgui::WidgetRenderer.
|
overridevirtual |
Get a map with all properties and their values.
Reimplemented from tgui::WidgetRenderer.
void tgui::TextBoxRenderer::setBackgroundColor | ( | const Color & | backgroundColor | ) |
Set the background color that will be used inside the text box.
backgroundColor | The new background color. |
void tgui::TextBoxRenderer::setBackgroundTexture | ( | const Texture & | texture | ) |
Changes the background image.
texture | New background texture |
When this image is set, the background color property will be ignored. Pass an empty string to unset the image, in this case the background color property will be used again.
void tgui::TextBoxRenderer::setBorderColor | ( | const Color & | borderColor | ) |
Set the border color that will be used inside the text box.
borderColor | The color of the borders |
void tgui::TextBoxRenderer::setCaretColor | ( | const Color & | caretColor | ) |
Set the color that will be used inside the text box for the blinking caret.
caretColor | The color of the blinking caret |
void tgui::TextBoxRenderer::setCaretWidth | ( | float | width | ) |
This will change the width of the blinking caret.
width | New width of the caret |
|
inlinevirtual |
Changes the size of the padding.
padding | Size of the padding |
Reimplemented from tgui::WidgetPadding.
|
overridevirtual |
Changes the padding of the text box.
This padding will be scaled together with the background image. If there is no background image, or when 9-slice scaling is used, the padding will be exactly what you pass here.
padding | The padding width and height |
Reimplemented from tgui::WidgetPadding.
|
inline |
Changes the size of the padding.
leftPadding | Width of the left padding |
topPadding | Height of the top padding |
rightPadding | Width of the right padding |
bottomPadding | Height of the bottom padding |
|
inline |
Changes the size of the padding.
width | Width of the left and right padding |
height | Height of the top and bottom padding |
|
overridevirtual |
Change a property of the renderer.
property | The property that you would like to change |
value | The new serialized value that you like to assign to the property |
Exception | when deserialization fails or when the widget does not have this property. |
Exception | when loading scrollbar fails with the theme connected to the list box |
Reimplemented from tgui::WidgetRenderer.
|
overridevirtual |
Change a property of the renderer.
property | The property that you would like to change |
value | The new value that you like to assign to the property. The ObjectConverter is implicitly constructed from the possible value types. |
Exception | for unknown properties or when value was of a wrong type. |
Exception | when loading scrollbar fails with the theme connected to the list box |
Reimplemented from tgui::WidgetRenderer.
void tgui::TextBoxRenderer::setSelectedTextBackgroundColor | ( | const Color & | selectedTextBackgroundColor | ) |
Set the background color of the selected text that will be used inside the text box.
selectedTextBackgroundColor | The new background color. |
void tgui::TextBoxRenderer::setSelectedTextColor | ( | const Color & | selectedTextColor | ) |
Set the text color of the selected text that will be used inside the text box.
selectedTextColor | The new text color. |
void tgui::TextBoxRenderer::setTextColor | ( | const Color & | textColor | ) |
Set the text color that will be used inside the text box.
textColor | The new text color. |