Public Types | Public Member Functions | List of all members
ime::ui::RadioButtonRenderer Class Reference

A RadioButton widget renderer. More...

#include <RadioButtonRenderer.h>

Inheritance diagram for ime::ui::RadioButtonRenderer:
ime::ui::IWidgetRenderer

Public Types

using Ptr = std::unique_ptr< RadioButtonRenderer >
 Unique renderer pointer. More...
 

Public Member Functions

void setBorders (const Borders &borders)
 Change the ize of the widget borders. More...
 
Borders getBorders () const
 Get the ize of the widgets borders. More...
 
void setTextDistanceRatio (float ratio)
 Set the relative distance between the radio button and the text next to it. More...
 
float getTextDistanceRatio () const
 Get The relative distance between the radio button and the text next to it. More...
 
void setTextColour (Colour colour)
 Set the colour of the text displayed on the button. More...
 
Colour getTextColour () const
 Get the colour of the button text. More...
 
void setTextHoverColour (Colour colour)
 Set the text colour when the mouse enters the button. More...
 
Colour getTextHoverColour () const
 Get the text colour when the mouse enters the button. More...
 
void setDisabledTextColour (Colour colour)
 Set the colour of the text when the button is disabled. More...
 
Colour getDisabledTextColour () const
 Get the colour of the text when the button is disabled. More...
 
void setCheckedTextColour (Colour colour)
 Set the colour of text when the button is checked. More...
 
Colour getTextColourChecked () const
 Get the colour of text when the button is checked. More...
 
void setCheckedTextHoverColour (Colour colour)
 Set the colour of the text when the mouse enters the button and it is checked. More...
 
Colour getCheckedTextHoverColour () const
 Get the colour of the text when the mouse enters the button and it is checked. More...
 
void setCheckedDisabledTextColour (Colour colour)
 Set the colour of the text when the button is checked and disabled. More...
 
Colour getCheckedDisabledTextColour () const
 Get the colour of the text when the button is checked and disabled. More...
 
void setBackgroundColour (Colour colour)
 Set the background colour of the button. More...
 
Colour getBackgroundColour () const
 Get the background colour of button. More...
 
void setBackgroundHoverColour (Colour colour)
 Set the background colour of the button when the mouse enters it. More...
 
Colour getBackgroundHoverColour () const
 Get the background colour of the button when the mouse enters it. More...
 
void setDisabledBackgroundColour (Colour colour)
 Set the background colour of the button when it is disabled. More...
 
Colour getDisabledBackgroundColour () const
 Get the background colour of the button when it is disabled. More...
 
void setCheckedBackgroundColour (Colour colour)
 Set the background colour used when the button is checked. More...
 
Colour getCheckedBackgroundColour () const
 Get the background colour used when the button is checked. More...
 
void setCheckedHoverBackgroundColour (Colour colour)
 Set the background colour when the mouse cursor enters
the button and it's checked. More...
 
Colour getCheckedHoverBackgroundColour () const
 Get the background colour when the mouse cursor enters
the button and it's checked. More...
 
void setCheckedDisabledBackgroundColour (Colour colour)
 Set the background colour when the button is checked and disabled. More...
 
Colour getCheckedDisabledBackgroundColour () const
 Get the background colour when the button is checked and disabled. More...
 
void setBorderColour (Colour colour)
 Set the border colour. More...
 
Colour getBorderColour () const
 Get the border colour. More...
 
void setBorderHoverColour (Colour colour)
 Set the background colour of when the mouse enters the button. More...
 
Colour getBorderHoverColour () const
 Get the background colour of when the mouse enters the button. More...
 
void setDisabledBorderColour (Colour colour)
 Set the background colour when the button is disabled. More...
 
Colour getDisabledBorderColour () const
 Get the background colour when the button is disabled. More...
 
void setFocusedBorderColour (Colour colour)
 Set the border colour when the button is focused but not hovered. More...
 
Colour getFocusedBorderColour () const
 Get the border colour when the button is focused but not hovered. More...
 
void setCheckedBorderColour (Colour colour)
 Set the border colour when the button is checked. More...
 
Colour getCheckedBorderColour () const
 Get the border colour when the button is checked. More...
 
void setCheckedHoverBorderColour (Colour colour)
 Set the colour of the button when the mouse cursor enters it and it's checked. More...
 
Colour getCheckedHoverBorderColour () const
 Get the colour of the button when the mouse cursor enters it and it's checked. More...
 
void setCheckedDisabledBorderColour (Colour colour)
 Set the border colour when the button is checked and disabled. More...
 
Colour getCheckedDisabledBorderColour () const
 Get the border colour when the button is checked and disabled. More...
 
void setCheckedFocusedBorderColour (Colour colour)
 Set the border colour when the button is checked and focused. More...
 
Colour getCheckedFocusedBorderColour () const
 Get the border colour when the button is checked and focused. More...
 
void setCheckColour (Colour colour)
 Set the colour that is used to fill the button when it is checked. More...
 
Colour getCheckColour () const
 Get the colour that is used to fill the button when it is checked. More...
 
void setCheckHoverColour (Colour colour)
 Set the colour that is used to fill the button when the mouse is on top of it. More...
 
Colour getCheckHoverColour () const
 Get the colour that is used to fill the button when the mouse is on top of it. More...
 
void setDisabledCheckedColour (Colour colour)
 Set the colour that is used to fill the button when the button is disabled. More...
 
Colour getDisabledCheckColour () const
 Get the colour that is used to fill the button when the button is disabled. More...
 
void setUncheckedTexture (const std::string &filename)
 Set the image that is displayed when the button is not checked. More...
 
void setCheckedTexture (const std::string &filename)
 Set the image that is displayed when the button is checked. More...
 
void setUncheckedHoverTexture (const std::string &filename)
 Set the image that is displayed when the button is not checked and the mouse is on top of the button. More...
 
void setCheckedHoverTexture (const std::string &filename)
 Set the image that is displayed when the button is checked and the mouse is on top of the button. More...
 
void setUncheckedDisabledTexture (const std::string &filename)
 Set the image that is displayed when the button is not checked and it's disabled. More...
 
void setCheckedDisabledTexture (const std::string &filename)
 Set the image that is displayed when the button is checked and it's disabled. More...
 
void setUncheckedFocusedTexture (const std::string &filename)
 Set the image that is displayed on top of the button when it is unchecked and focused. More...
 
void setCheckedFocusedTexture (const std::string &filename)
 Set the image that is displayed on top of the button when it is checked and focused. More...
 
void setTextStyle (TextStyle style)
 Set the text style. More...
 
TextStyle getTextStyle () const
 Get the text style. More...
 
void setCheckedTextStyle (TextStyle style)
 Set the text style when the button is checked. More...
 
TextStyle getCheckedTextStyle () const
 Get the text style when the button is checked. More...
 
void setOpacity (float opacity) override
 Set the opacity of the widget. More...
 
float getOpacity () const override
 Get the opacity of the widget. More...
 
void setOpacityDisabled (float opacity) override
 Set the opacity of the widget when it is disabled. More...
 
float getOpacityDisabled () const override
 Get the opacity of the widget when it is disabled. More...
 
void setFont (const std::string &filename) override
 Change the widgets font. More...
 
void ignoreTransparentTexture (bool ignoreTransparentParts) override
 Set whether mouse events should be ignored on transparent parts of the texture of the widget in normal state. More...
 
bool isTransparentTextureIgnored () const override
 Check if mouse events are ignored on transparent parts of the texture or not. More...
 
IWidgetRenderer::Ptr clone () const override
 Create a copy of the render. More...
 
void setInternalPtr (tgui::WidgetRenderer *renderer) override
 
tgui::WidgetRenderer * getInternalPtr () override
 
 ~RadioButtonRenderer () override
 Destructor. More...
 

Detailed Description

A RadioButton widget renderer.

This class allows you to manipulate the render properties of a RadioButton

Definition at line 44 of file RadioButtonRenderer.h.

Member Typedef Documentation

◆ Ptr

Unique renderer pointer.

Definition at line 46 of file RadioButtonRenderer.h.

Constructor & Destructor Documentation

◆ ~RadioButtonRenderer()

ime::ui::RadioButtonRenderer::~RadioButtonRenderer ( )
override

Destructor.

Member Function Documentation

◆ clone()

IWidgetRenderer::Ptr ime::ui::RadioButtonRenderer::clone ( ) const
overridevirtual

Create a copy of the render.

Returns
A copy of the render

Implements ime::ui::IWidgetRenderer.

◆ getBackgroundColour()

Colour ime::ui::RadioButtonRenderer::getBackgroundColour ( ) const

Get the background colour of button.

Returns
The background colour of the button

◆ getBackgroundHoverColour()

Colour ime::ui::RadioButtonRenderer::getBackgroundHoverColour ( ) const

Get the background colour of the button when the mouse enters it.

Returns
The background colour of the button when the mouse enters it

◆ getBorderColour()

Colour ime::ui::RadioButtonRenderer::getBorderColour ( ) const

Get the border colour.

Returns
The border colour

◆ getBorderHoverColour()

Colour ime::ui::RadioButtonRenderer::getBorderHoverColour ( ) const

Get the background colour of when the mouse enters the button.

Returns
The background colour of when the mouse enters the button

◆ getBorders()

Borders ime::ui::RadioButtonRenderer::getBorders ( ) const

Get the ize of the widgets borders.

Returns
The size of the widgets borders

◆ getCheckColour()

Colour ime::ui::RadioButtonRenderer::getCheckColour ( ) const

Get the colour that is used to fill the button when it is checked.

Returns
The colour that is used to fill the button when it is checked

◆ getCheckedBackgroundColour()

Colour ime::ui::RadioButtonRenderer::getCheckedBackgroundColour ( ) const

Get the background colour used when the button is checked.

Returns
The background colour used when the button is checked

◆ getCheckedBorderColour()

Colour ime::ui::RadioButtonRenderer::getCheckedBorderColour ( ) const

Get the border colour when the button is checked.

Returns
The border colour when the button is checked

◆ getCheckedDisabledBackgroundColour()

Colour ime::ui::RadioButtonRenderer::getCheckedDisabledBackgroundColour ( ) const

Get the background colour when the button is checked and disabled.

Returns
The background colour when the button is checked and disabled

◆ getCheckedDisabledBorderColour()

Colour ime::ui::RadioButtonRenderer::getCheckedDisabledBorderColour ( ) const

Get the border colour when the button is checked and disabled.

Returns
The border colour when the button is checked and disabled

◆ getCheckedDisabledTextColour()

Colour ime::ui::RadioButtonRenderer::getCheckedDisabledTextColour ( ) const

Get the colour of the text when the button is checked and disabled.

Returns
The colour of the text when the button is checked and disabled

◆ getCheckedFocusedBorderColour()

Colour ime::ui::RadioButtonRenderer::getCheckedFocusedBorderColour ( ) const

Get the border colour when the button is checked and focused.

Returns
The border colour when the button is checked and focused

◆ getCheckedHoverBackgroundColour()

Colour ime::ui::RadioButtonRenderer::getCheckedHoverBackgroundColour ( ) const

Get the background colour when the mouse cursor enters
the button and it's checked.

Returns
Checked hover background colour

◆ getCheckedHoverBorderColour()

Colour ime::ui::RadioButtonRenderer::getCheckedHoverBorderColour ( ) const

Get the colour of the button when the mouse cursor enters it and it's checked.

Returns
The colour of the button when the mouse cursor enters it and it's checked

◆ getCheckedTextHoverColour()

Colour ime::ui::RadioButtonRenderer::getCheckedTextHoverColour ( ) const

Get the colour of the text when the mouse enters the button and it is checked.

Returns
The checked hover colour

◆ getCheckedTextStyle()

TextStyle ime::ui::RadioButtonRenderer::getCheckedTextStyle ( ) const

Get the text style when the button is checked.

Returns
The text style when the button is checked

◆ getCheckHoverColour()

Colour ime::ui::RadioButtonRenderer::getCheckHoverColour ( ) const

Get the colour that is used to fill the button when the mouse is on top of it.

Returns
The colour that is used to fill the button when the mouse is on top of it

◆ getDisabledBackgroundColour()

Colour ime::ui::RadioButtonRenderer::getDisabledBackgroundColour ( ) const

Get the background colour of the button when it is disabled.

Returns
The background colour of the button when it is disabled

◆ getDisabledBorderColour()

Colour ime::ui::RadioButtonRenderer::getDisabledBorderColour ( ) const

Get the background colour when the button is disabled.

Returns
The background colour when the button is disabled

◆ getDisabledCheckColour()

Colour ime::ui::RadioButtonRenderer::getDisabledCheckColour ( ) const

Get the colour that is used to fill the button when the button is disabled.

Returns
The colour that is used to fill the button when the button is disabled

◆ getDisabledTextColour()

Colour ime::ui::RadioButtonRenderer::getDisabledTextColour ( ) const

Get the colour of the text when the button is disabled.

Returns
The colour of the text when the button is disabled

◆ getFocusedBorderColour()

Colour ime::ui::RadioButtonRenderer::getFocusedBorderColour ( ) const

Get the border colour when the button is focused but not hovered.

Returns
The border colour when the button is focused but not hovered

◆ getInternalPtr()

tgui::WidgetRenderer * ime::ui::RadioButtonRenderer::getInternalPtr ( )
overridevirtual

◆ getOpacity()

float ime::ui::RadioButtonRenderer::getOpacity ( ) const
overridevirtual

Get the opacity of the widget.

Returns
The opacity of the widget

Implements ime::ui::IWidgetRenderer.

◆ getOpacityDisabled()

float ime::ui::RadioButtonRenderer::getOpacityDisabled ( ) const
overridevirtual

Get the opacity of the widget when it is disabled.

Returns
The opacity of the widget in disabled state

This function will return -1 if the widget uses the same opacity as the enabled state when it is disabled

Implements ime::ui::IWidgetRenderer.

◆ getTextColour()

Colour ime::ui::RadioButtonRenderer::getTextColour ( ) const

Get the colour of the button text.

Returns
The colour of the button text

◆ getTextColourChecked()

Colour ime::ui::RadioButtonRenderer::getTextColourChecked ( ) const

Get the colour of text when the button is checked.

Returns
The colour of text when the button is checked

◆ getTextDistanceRatio()

float ime::ui::RadioButtonRenderer::getTextDistanceRatio ( ) const

Get The relative distance between the radio button and the text next to it.

Returns
The ratio of the distance based on the width of the radio button

◆ getTextHoverColour()

Colour ime::ui::RadioButtonRenderer::getTextHoverColour ( ) const

Get the text colour when the mouse enters the button.

Returns
The text colour when the mouse enters the button

◆ getTextStyle()

TextStyle ime::ui::RadioButtonRenderer::getTextStyle ( ) const

Get the text style.

Returns
The text style

◆ ignoreTransparentTexture()

void ime::ui::RadioButtonRenderer::ignoreTransparentTexture ( bool  ignoreTransparentParts)
overridevirtual

Set whether mouse events should be ignored on transparent parts of the texture of the widget in normal state.

Parameters
ignoreTransparentPartsTrue to ignore mouse events on transparent parts of the texture, otherwise false

When mouse events are ignored, they are passed to a widget behind the widget. By default, mouse events are NOT ignored and the widget will receive mouse events even on transparent texture parts. This property does nothing if the widget doesn't use textures

Implements ime::ui::IWidgetRenderer.

◆ isTransparentTextureIgnored()

bool ime::ui::RadioButtonRenderer::isTransparentTextureIgnored ( ) const
overridevirtual

Check if mouse events are ignored on transparent parts of the texture or not.

Returns
True if mouse events are ignored, otherwise false
See also
ignoreTransparentTexture

Implements ime::ui::IWidgetRenderer.

◆ setBackgroundColour()

void ime::ui::RadioButtonRenderer::setBackgroundColour ( Colour  colour)

Set the background colour of the button.

Parameters
colourThe background colour to set
Note
that this colour is ignored when you set a background image

◆ setBackgroundHoverColour()

void ime::ui::RadioButtonRenderer::setBackgroundHoverColour ( Colour  colour)

Set the background colour of the button when the mouse enters it.

Parameters
colourThe background colour to set
Note
that this colour is ignored when you set a background image

◆ setBorderColour()

void ime::ui::RadioButtonRenderer::setBorderColour ( Colour  colour)

Set the border colour.

Parameters
colourThe border colour to set

◆ setBorderHoverColour()

void ime::ui::RadioButtonRenderer::setBorderHoverColour ( Colour  colour)

Set the background colour of when the mouse enters the button.

Parameters
colourThe background colour to set

◆ setBorders()

void ime::ui::RadioButtonRenderer::setBorders ( const Borders borders)

Change the ize of the widget borders.

Parameters
bordersThe size of the borders

◆ setCheckColour()

void ime::ui::RadioButtonRenderer::setCheckColour ( Colour  colour)

Set the colour that is used to fill the button when it is checked.

Parameters
colourColour to set

◆ setCheckedBackgroundColour()

void ime::ui::RadioButtonRenderer::setCheckedBackgroundColour ( Colour  colour)

Set the background colour used when the button is checked.

Parameters
colourthe new colour

◆ setCheckedBorderColour()

void ime::ui::RadioButtonRenderer::setCheckedBorderColour ( Colour  colour)

Set the border colour when the button is checked.

Parameters
colourThe colour to set

◆ setCheckedDisabledBackgroundColour()

void ime::ui::RadioButtonRenderer::setCheckedDisabledBackgroundColour ( Colour  colour)

Set the background colour when the button is checked and disabled.

Parameters
colourColour to set

◆ setCheckedDisabledBorderColour()

void ime::ui::RadioButtonRenderer::setCheckedDisabledBorderColour ( Colour  colour)

Set the border colour when the button is checked and disabled.

Parameters
colourThe colour to set

◆ setCheckedDisabledTextColour()

void ime::ui::RadioButtonRenderer::setCheckedDisabledTextColour ( Colour  colour)

Set the colour of the text when the button is checked and disabled.

Parameters
colourNew colour

◆ setCheckedDisabledTexture()

void ime::ui::RadioButtonRenderer::setCheckedDisabledTexture ( const std::string &  filename)

Set the image that is displayed when the button is checked and it's disabled.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

This only has effect when the normal checked and unchecked images are also set

◆ setCheckedFocusedBorderColour()

void ime::ui::RadioButtonRenderer::setCheckedFocusedBorderColour ( Colour  colour)

Set the border colour when the button is checked and focused.

Parameters
colourThe colour to set

◆ setCheckedFocusedTexture()

void ime::ui::RadioButtonRenderer::setCheckedFocusedTexture ( const std::string &  filename)

Set the image that is displayed on top of the button when it is checked and focused.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

This only has effect when the normal checked and unchecked images are also set. Pass an empty texture to unset the image

◆ setCheckedHoverBackgroundColour()

void ime::ui::RadioButtonRenderer::setCheckedHoverBackgroundColour ( Colour  colour)

Set the background colour when the mouse cursor enters
the button and it's checked.

Parameters
colourcolour to set

◆ setCheckedHoverBorderColour()

void ime::ui::RadioButtonRenderer::setCheckedHoverBorderColour ( Colour  colour)

Set the colour of the button when the mouse cursor enters it and it's checked.

Parameters
colourColour to set

◆ setCheckedHoverTexture()

void ime::ui::RadioButtonRenderer::setCheckedHoverTexture ( const std::string &  filename)

Set the image that is displayed when the button is checked and the mouse is on top of the button.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

This only has effect when the normal checked and unchecked images are also set

◆ setCheckedTextColour()

void ime::ui::RadioButtonRenderer::setCheckedTextColour ( Colour  colour)

Set the colour of text when the button is checked.

Parameters
colourColour to set

◆ setCheckedTextHoverColour()

void ime::ui::RadioButtonRenderer::setCheckedTextHoverColour ( Colour  colour)

Set the colour of the text when the mouse enters the button and it is checked.

Parameters
colourThe colour to set

◆ setCheckedTextStyle()

void ime::ui::RadioButtonRenderer::setCheckedTextStyle ( TextStyle  style)

Set the text style when the button is checked.

Parameters
styleThe new style

◆ setCheckedTexture()

void ime::ui::RadioButtonRenderer::setCheckedTexture ( const std::string &  filename)

Set the image that is displayed when the button is checked.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

When checked and unchecked images are set, the background and check colour properties will be ignored.

◆ setCheckHoverColour()

void ime::ui::RadioButtonRenderer::setCheckHoverColour ( Colour  colour)

Set the colour that is used to fill the button when the mouse is on top of it.

Parameters
colourThe colour to set

◆ setDisabledBackgroundColour()

void ime::ui::RadioButtonRenderer::setDisabledBackgroundColour ( Colour  colour)

Set the background colour of the button when it is disabled.

Parameters
colourBackground colour to set
Note
This colour is ignored when you set a background image

◆ setDisabledBorderColour()

void ime::ui::RadioButtonRenderer::setDisabledBorderColour ( Colour  colour)

Set the background colour when the button is disabled.

Parameters
colourThe background colour when the button is disabled

◆ setDisabledCheckedColour()

void ime::ui::RadioButtonRenderer::setDisabledCheckedColour ( Colour  colour)

Set the colour that is used to fill the button when the button is disabled.

Parameters
colourThe new colour to set

◆ setDisabledTextColour()

void ime::ui::RadioButtonRenderer::setDisabledTextColour ( Colour  colour)

Set the colour of the text when the button is disabled.

Parameters
colourThe colour to be set

◆ setFocusedBorderColour()

void ime::ui::RadioButtonRenderer::setFocusedBorderColour ( Colour  colour)

Set the border colour when the button is focused but not hovered.

Parameters
colourBorder colour to set

◆ setFont()

void ime::ui::RadioButtonRenderer::setFont ( const std::string &  filename)
overridevirtual

Change the widgets font.

Parameters
filenameFilename of the new font
Exceptions
FileNotFoundExceptionIf the font cannot be found on the disk

Implements ime::ui::IWidgetRenderer.

◆ setInternalPtr()

void ime::ui::RadioButtonRenderer::setInternalPtr ( tgui::WidgetRenderer *  renderer)
overridevirtual

◆ setOpacity()

void ime::ui::RadioButtonRenderer::setOpacity ( float  opacity)
overridevirtual

Set the opacity of the widget.

Parameters
opacityThe new opacity of the widget in between 0 and 1

0 means completely transparent, while 1 (default) means fully opaque

Implements ime::ui::IWidgetRenderer.

◆ setOpacityDisabled()

void ime::ui::RadioButtonRenderer::setOpacityDisabled ( float  opacity)
overridevirtual

Set the opacity of the widget when it is disabled.

Parameters
opacityOpacity to set between 0 and 1

0 means completely transparent, while 1 (default) means fully opaque. Set to -1 (default) to use the normal opacity value even when the widget is disabled.

Implements ime::ui::IWidgetRenderer.

◆ setTextColour()

void ime::ui::RadioButtonRenderer::setTextColour ( Colour  colour)

Set the colour of the text displayed on the button.

Parameters
colourThe new test colour

◆ setTextDistanceRatio()

void ime::ui::RadioButtonRenderer::setTextDistanceRatio ( float  ratio)

Set the relative distance between the radio button and the text next to it.

Parameters
ratioThe ratio of the distance based on the width of the radio button

The default value is 0.2 which means that if the width of the radio button would be 50 pixels then the gap between the radio button and the text will be 10 pixels

◆ setTextHoverColour()

void ime::ui::RadioButtonRenderer::setTextHoverColour ( Colour  colour)

Set the text colour when the mouse enters the button.

Parameters
colourThe colour to be set

◆ setTextStyle()

void ime::ui::RadioButtonRenderer::setTextStyle ( TextStyle  style)

Set the text style.

Parameters
styleStyle to set

◆ setUncheckedDisabledTexture()

void ime::ui::RadioButtonRenderer::setUncheckedDisabledTexture ( const std::string &  filename)

Set the image that is displayed when the button is not checked and it's disabled.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

This only has effect when the normal checked and unchecked images are also set

◆ setUncheckedFocusedTexture()

void ime::ui::RadioButtonRenderer::setUncheckedFocusedTexture ( const std::string &  filename)

Set the image that is displayed on top of the button when it is unchecked and focused.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

This only has effect when the normal checked and unchecked images are also set. Pass an empty texture to unset the image

◆ setUncheckedHoverTexture()

void ime::ui::RadioButtonRenderer::setUncheckedHoverTexture ( const std::string &  filename)

Set the image that is displayed when the button is not checked and the mouse is on top of the button.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

This only has effect when the normal checked and unchecked images are also set

◆ setUncheckedTexture()

void ime::ui::RadioButtonRenderer::setUncheckedTexture ( const std::string &  filename)

Set the image that is displayed when the button is not checked.

Parameters
filenameFilename of the image to be set
Exceptions
FileNotFoundExceptionIf the image cannot be found on the disk

When checked and unchecked images are set, the background and check colour properties will be ignored


The documentation for this class was generated from the following file: