TGUI
0.7.8
|
Public Member Functions | |
ComboBoxRenderer (ComboBox *comboBox) | |
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 combo box. More... | |
void | setArrowBackgroundColor (const Color &color) |
Set the background color of the arrow that will be used inside the combo box. More... | |
void | setArrowBackgroundColorNormal (const Color &color) |
Set the background color of the arrow when the mouse is not on top of the combo box. More... | |
void | setArrowBackgroundColorHover (const Color &color) |
Set the background color of the arrow when the mouse is standing on top of the combo box. More... | |
void | setArrowColor (const Color &color) |
Set the color of the arrow that will be used inside the combo box. More... | |
void | setArrowColorNormal (const Color &color) |
Set the color of the arrow when the mouse is not on top of the combo box. More... | |
void | setArrowColorHover (const Color &color) |
Set the color of the arrow when the mouse is standing on top of the combo box. More... | |
void | setTextColor (const Color &textColor) |
Set the text color that will be used inside the combo box. More... | |
void | setBorderColor (const Color &borderColor) |
Set the border color text that will be used inside the combo box. More... | |
void | setBackgroundTexture (const Texture &texture) |
Changes the background image. More... | |
void | setArrowUpTexture (const Texture &texture) |
Changes the arrow up image. More... | |
void | setArrowDownTexture (const Texture &texture) |
Changes the arrow down image. More... | |
void | setArrowUpHoverTexture (const Texture &texture) |
Changes the arrow up image when the mouse is on top of the arrow. More... | |
void | setArrowDownHoverTexture (const Texture &texture) |
Changes the arrow down image when the mouse is on top of the arrow. More... | |
virtual void | setBorders (const Borders &borders) override |
Changes the size of the borders. More... | |
virtual void | setPadding (const Padding &padding) override |
Changes the padding of the list box. More... | |
std::shared_ptr< ListBoxRenderer > | getListBox () const |
Returns the renderer of the list box. More... | |
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 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 | |
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.
comboBox | The combo box that is connected to the renderer |
std::shared_ptr< ListBoxRenderer > tgui::ComboBoxRenderer::getListBox | ( | ) | const |
Returns the renderer of the list box.
|
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::ComboBoxRenderer::setArrowBackgroundColor | ( | const Color & | color | ) |
Set the background color of the arrow that will be used inside the combo box.
color | The color of the arrow background of the combo box |
This will overwrite the color in both normal and hover states.
This color will be ignored when a up and down image were loaded for the normal state.
void tgui::ComboBoxRenderer::setArrowBackgroundColorHover | ( | const Color & | color | ) |
Set the background color of the arrow when the mouse is standing on top of the combo box.
color | The color of the arrow background in hover state |
This color will be ignored when a up and down image were loaded for the normal state.
void tgui::ComboBoxRenderer::setArrowBackgroundColorNormal | ( | const Color & | color | ) |
Set the background color of the arrow when the mouse is not on top of the combo box.
color | The color of the arrow background in normal state |
This color will be ignored when a up and down image were loaded for the normal state.
void tgui::ComboBoxRenderer::setArrowColor | ( | const Color & | color | ) |
Set the color of the arrow that will be used inside the combo box.
color | The color of the arrow of the combo box |
This will overwrite the color in both normal and hover states.
This color will be ignored when a up and down image were loaded for the normal state.
void tgui::ComboBoxRenderer::setArrowColorHover | ( | const Color & | color | ) |
Set the color of the arrow when the mouse is standing on top of the combo box.
color | The color of the arrow in hover state |
This color will be ignored when a up and down image were loaded for the normal state.
void tgui::ComboBoxRenderer::setArrowColorNormal | ( | const Color & | color | ) |
Set the color of the arrow when the mouse is not on top of the combo box.
color | The color of the arrow in normal state |
This color will be ignored when a up and down image were loaded for the normal state.
void tgui::ComboBoxRenderer::setArrowDownHoverTexture | ( | const Texture & | texture | ) |
Changes the arrow down image when the mouse is on top of the arrow.
texture | New arrow down hover texture |
Pass an empty string to unset the image.
void tgui::ComboBoxRenderer::setArrowDownTexture | ( | const Texture & | texture | ) |
Changes the arrow down image.
texture | New arrow down texture |
When this image and the up image are set, the arrow color properties will be ignored. Pass an empty string to unset the image.
void tgui::ComboBoxRenderer::setArrowUpHoverTexture | ( | const Texture & | texture | ) |
Changes the arrow up image when the mouse is on top of the arrow.
texture | New arrow up hover texture |
Pass an empty string to unset the image.
void tgui::ComboBoxRenderer::setArrowUpTexture | ( | const Texture & | texture | ) |
Changes the arrow up image.
texture | New arrow up texture |
When this image and the down image are set, the arrow color properties will be ignored. Pass an empty string to unset the image.
void tgui::ComboBoxRenderer::setBackgroundColor | ( | const Color & | backgroundColor | ) |
Set the background color that will be used inside the combo box.
backgroundColor | The color of the background of the combo box |
This color will be ignored when a background image was set.
void tgui::ComboBoxRenderer::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::ComboBoxRenderer::setBorderColor | ( | const Color & | borderColor | ) |
Set the border color text that will be used inside the combo box.
borderColor | The color of the borders |
|
inlinevirtual |
Changes the size of the borders.
borders | Size of the borders |
Reimplemented from tgui::WidgetBorders.
|
overridevirtual |
Changes the size of the borders.
borders | The size of the borders |
Reimplemented from tgui::WidgetBorders.
|
inline |
Changes the size of the borders.
leftBorder | Width of the left border |
topBorder | Height of the top border |
rightBorder | Width of the right border |
bottomBorder | Height of the bottom border |
|
inline |
Changes the size of the borders.
width | Width of the left and right borders |
height | Height of the top and bottom borders |
|
inlinevirtual |
Changes the size of the padding.
padding | Size of the padding |
Reimplemented from tgui::WidgetPadding.
|
overridevirtual |
Changes the padding of the list 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::ComboBoxRenderer::setTextColor | ( | const Color & | textColor | ) |
Set the text color that will be used inside the combo box.
textColor | The color of the text |