26#ifndef TGUI_LIST_BOX_RENDERER_HPP
27#define TGUI_LIST_BOX_RENDERER_HPP
30#include <TGUI/Renderers/WidgetRenderer.hpp>
34TGUI_MODULE_EXPORT
namespace tgui
40 using WidgetRenderer::WidgetRenderer;
303 void setScrollbar(std::shared_ptr<RendererData> scrollbarRendererData);
Wrapper for colors.
Definition Color.hpp:72
Definition ListBoxRenderer.hpp:37
void setSelectedTextColorHover(Color textColor)
Changes the color of the text of the selected item when it is below the mouse.
TGUI_NODISCARD Color getSelectedBackgroundColorHover() const
Returns the background color used for the selected item when the mouse hovers over it.
TGUI_NODISCARD Color getBorderColor() const
Returns the color of the borders.
void setTextColorHover(Color textColor)
Changes the color of the text of the item below the mouse.
TGUI_NODISCARD Color getSelectedTextColorHover() const
Returns the color of the text of the selected item when it is below the mouse.
void setBorderColor(Color borderColor)
Changes the color of the borders.
TGUI_NODISCARD Color getSelectedBackgroundColor() const
Returns the background color of the selected item.
TGUI_NODISCARD Color getTextColorHover() const
Returns the color of the text of the item below the mouse.
TGUI_NODISCARD float getScrollbarWidth() const
Returns the wanted width of the scrollbar.
TGUI_NODISCARD TextStyles getSelectedTextStyle() const
Returns text style of the selected item.
void setPadding(const Padding &padding)
Changes the padding of the list box.
TGUI_NODISCARD Padding getPadding() const
Returns the size of the padding.
TGUI_NODISCARD std::shared_ptr< RendererData > getScrollbar() const
Returns the renderer data of the scrollbar.
TGUI_NODISCARD const Texture & getTextureBackground() const
Returns the background image of the list box.
void setSelectedTextStyle(TextStyles style)
Changes the text style of the selected item.
void setTextColor(Color textColor)
Changes the color of the text.
void setBorders(const Borders &borders)
Changes the size of the borders.
TGUI_NODISCARD TextStyles getTextStyle() const
Returns text style.
void setSelectedTextColor(Color textColor)
Changes the color of the text from the selected item.
void setBackgroundColor(Color backgroundColor)
Changes the background color of the list box.
TGUI_NODISCARD Color getTextColor() const
Returns the color of the text.
void setSelectedBackgroundColor(Color backgroundColor)
Changes the background color of the selected item.
void setTextStyle(TextStyles style)
Changes the text style.
TGUI_NODISCARD Color getSelectedTextColor() const
Returns the color of the text from the selected item.
TGUI_NODISCARD Color getBackgroundColor() const
Returns the background color.
void setBackgroundColorHover(Color backgroundColor)
Changes the background color used for the item below the mouse.
TGUI_NODISCARD Color getBackgroundColorHover() const
Returns the background color used for the item below the mouse.
TGUI_NODISCARD Borders getBorders() const
Returns the size of the borders.
void setScrollbar(std::shared_ptr< RendererData > scrollbarRendererData)
Sets the renderer data of the scrollbar.
void setSelectedBackgroundColorHover(Color backgroundColor)
Changes the background color used for the selected item when the mouse hovers over it.
void setTextureBackground(const Texture &texture)
Changes the background image of the list box.
void setScrollbarWidth(float scrollbarWidth)
Sets the wanted width of the scrollbar.
Definition Outline.hpp:39
Wrapper for text styles.
Definition TextStyle.hpp:57
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:39