25#ifndef TGUI_EDIT_BOX_RENDERER_HPP
26#define TGUI_EDIT_BOX_RENDERER_HPP
28#include <TGUI/Renderers/WidgetRenderer.hpp>
32TGUI_MODULE_EXPORT
namespace tgui
38 using WidgetRenderer::WidgetRenderer;
295 TGUI_DEPRECATED(
"Use setCaretColor instead, caret is never shown in unfocused state") void setCaretColorFocused(
Color caretColor);
301 TGUI_DEPRECATED("Use getCaretColor instead, caret is never shown in unfocused state") TGUI_NODISCARD
Color getCaretColorFocused() const;
315 TGUI_NODISCARD
Color getBorderColor() const;
322 void setBorderColorHover(
Color color);
329 TGUI_NODISCARD
Color getBorderColorHover() const;
336 void setBorderColorDisabled(
Color color);
343 TGUI_NODISCARD
Color getBorderColorDisabled() const;
349 void setBorderColorFocused(
Color color);
355 TGUI_NODISCARD
Color getBorderColorFocused() const;
371 TGUI_NODISCARD const
Texture& getTexture() const;
385 TGUI_NODISCARD const
Texture& getTextureHover() const;
392 void setTextureDisabled(const
Texture& texture);
399 TGUI_NODISCARD const
Texture& getTextureDisabled() const;
406 void setTextureFocused(const
Texture& texture);
413 TGUI_NODISCARD const
Texture& getTextureFocused() const;
Wrapper for colors.
Definition Color.hpp:73
Definition EditBoxRenderer.hpp:35
void setPadding(const Padding &padding)
Changes the padding of the edit box.
void setDefaultTextColor(Color defaultTextColor)
Sets the color of the default text that can optionally be displayed when the edit box is empty.
void setBorders(const Borders &borders)
Changes the size of the borders.
TGUI_NODISCARD Color getSelectedTextBackgroundColor() const
Returns the background color of the selected text that will be used inside the edit box.
void setCaretColor(Color caretColor)
Sets the color that will be used inside the edit box for the blinking caret.
TGUI_NODISCARD Color getBackgroundColorHover() const
Returns the color of the background in the hover state (mouse on edit box)
void setTextColorFocused(Color textColor)
Sets the text color that will be used inside the edit box when the edit box is focused.
TGUI_NODISCARD Color getSelectedTextColor() const
Returns the text color of the selected text that will be used inside the edit box.
TGUI_NODISCARD float getCaretWidth() const
Returns the caret width.
TGUI_NODISCARD TextStyles getDefaultTextStyle() const
Returns the text style of the default text (the text drawn when the edit box is empty)
void setSelectedTextBackgroundColor(Color selectedTextBackgroundColor)
Sets the background color of the selected text that will be used inside the edit box.
TGUI_NODISCARD Color getTextColor() const
Returns the text color that will be used inside the edit box.
void setBackgroundColor(Color color)
Changes the color of the background.
TGUI_NODISCARD Color getTextColorFocused() const
Returns the text color that will be used inside the edit box when the edit box is focused.
void setTextStyle(TextStyles style)
Changes the text style.
void setBackgroundColorFocused(Color color)
Changes the color of the background when the edit box is focused.
TGUI_NODISCARD TextStyles getTextStyle() const
Returns text style.
void setBackgroundColorDisabled(Color color)
Changes the color of the background when the edit box is disabled.
TGUI_NODISCARD Color getDefaultTextColor() const
Returns the color of the default text that can optionally be displayed when the edit box is empty.
void setDefaultTextStyle(TextStyles style)
Changes the text style of the default text (the text drawn when the edit box is empty)
TGUI_NODISCARD Padding getPadding() const
Returns the size of the padding.
TGUI_NODISCARD Color getCaretColor() const
Returns the color that will be used inside the edit box for the blinking caret.
void setCaretWidth(float width)
Changes the width of the caret.
TGUI_NODISCARD Color getTextColorDisabled() const
Returns the text color that will be used inside the edit box when the edit box is disabled.
void setSelectedTextColor(Color selectedTextColor)
Sets the text color of the selected text that will be used inside the edit box.
TGUI_NODISCARD Color getBackgroundColorDisabled() const
Returns the color of the background when the edit box is disabled.
void setTextColorDisabled(Color textColor)
Sets the text color that will be used inside the edit box when the edit box is disabled.
TGUI_NODISCARD Color getCaretColorHover() const
Returns the color that will be used for the blinking caret when the mouse is on top of the edit box.
TGUI_NODISCARD Borders getBorders() const
Returns the size of the borders.
void setBackgroundColorHover(Color color)
Changes the color of the background in the hover state (mouse on edit box, but not pressed)
void setCaretColorHover(Color caretColor)
Sets the color that will be used for the blinking caret when the mouse is on top of the edit box.
TGUI_NODISCARD Color getBackgroundColor() const
Returns the color of the background.
TGUI_NODISCARD Color getBackgroundColorFocused() const
Returns the color of the background when the edit box is focused.
void setTextColor(Color textColor)
Sets the text color that will be used inside the edit box.
Definition Outline.hpp:38
Wrapper for text styles.
Definition TextStyle.hpp:55
Texture wrapper that internally reuses resources when multiple Texture objects are loaded from the sa...
Definition Texture.hpp:57
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38