sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
class SGWButton;
part of SGEXTN module SG_Widgets
SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ button base class
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGWButton.h›
CMake target for BuildLah: SGEXTN::SG_Widgets
see this link for more information about BuildLah
parent class: SGWWidget
children classes: SGWIconButton, SGWTextButton
int attachedInt;
void (*clickFunction)();
void (*clickFunctionWithInt)(int);
void (*clickFunctionWithPointer)(SGWButton*);
void (*clickFunctionWithString)(const SGXString&);
void (*pressFunction)();
void (*pressFunctionWithInt)(int);
void (*pressFunctionWithPointer)(SGWButton*);
void (*pressFunctionWithString)(const SGXString&);
void (*releaseFunction)();
void (*releaseFunctionWithInt)(int);
void (*releaseFunctionWithPointer)(SGWButton*);
void (*releaseFunctionWithString)(const SGXString&);
[[nodiscard]] SGXColourRGBA getBackgroundColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getBackgroundFocusColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getBackgroundFocusSelectedColour(bool* isUsing) const;
[[nodiscard]] int getBackgroundFocusSelectedThemeColour(bool* isUsing) const;
[[nodiscard]] int getBackgroundFocusThemeColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getBackgroundHoverColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getBackgroundHoverSelectedColour(bool* isUsing) const;
[[nodiscard]] int getBackgroundHoverSelectedThemeColour(bool* isUsing) const;
[[nodiscard]] int getBackgroundHoverThemeColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getBackgroundSelectedColour(bool* isUsing) const;
[[nodiscard]] int getBackgroundSelectedThemeColour(bool* isUsing) const;
[[nodiscard]] int getBackgroundThemeColour(bool* isUsing) const;
[[nodiscard]] float getF0() const;
[[nodiscard]] float getF1() const;
[[nodiscard]] SGXString getFont() const;
[[nodiscard]] SGXColourRGBA getForegroundColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getForegroundFocusColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getForegroundFocusSelectedColour(bool* isUsing) const;
[[nodiscard]] int getForegroundFocusSelectedThemeColour(bool* isUsing) const;
[[nodiscard]] int getForegroundFocusThemeColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getForegroundHoverColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getForegroundHoverSelectedColour(bool* isUsing) const;
[[nodiscard]] int getForegroundHoverSelectedThemeColour(bool* isUsing) const;
[[nodiscard]] int getForegroundHoverThemeColour(bool* isUsing) const;
[[nodiscard]] SGXColourRGBA getForegroundSelectedColour(bool* isUsing) const;
[[nodiscard]] int getForegroundSelectedThemeColour(bool* isUsing) const;
[[nodiscard]] int getForegroundThemeColour(bool* isUsing) const;
[[nodiscard]] SGWHorizontalAlignment::Flag getHorizontalAlignment() const;
[[nodiscard]] bool getSelected() const;
[[nodiscard]] float getTextAsFloat(bool* isValid, float minimum, float maximum) const;
[[nodiscard]] int getTextAsInt(bool* isValid, int minimum, int maximum) const;
[[nodiscard]] SGXString getTextAsString() const;
[[nodiscard]] SGWVerticalAlignment::Flag getVerticalAlignment() const;
void setBackgroundColour(SGXColourRGBA colour);
void setBackgroundFocusColour(SGXColourRGBA colour);
void setBackgroundFocusSelectedColour(SGXColourRGBA colour);
void setBackgroundFocusSelectedThemeColour(int themeColour);
void setBackgroundFocusThemeColour(int themeColour);
void setBackgroundHoverColour(SGXColourRGBA colour);
void setBackgroundHoverSelectedColour(SGXColourRGBA colour);
void setBackgroundHoverSelectedThemeColour(int themeColour);
void setBackgroundHoverThemeColour(int themeColour);
void setBackgroundSelectedColour(SGXColourRGBA colour);
void setBackgroundSelectedThemeColour(int themeColour);
void setBackgroundThemeColour(int themeColour);
void setF0(float f0);
void setF1(float f1);
void setFont(const SGXString& font);
void setForegroundColour(SGXColourRGBA colour);
void setForegroundFocusColour(SGXColourRGBA colour);
void setForegroundFocusSelectedColour(SGXColourRGBA colour);
void setForegroundFocusSelectedThemeColour(int themeColour);
void setForegroundFocusThemeColour(int themeColour);
void setForegroundHoverColour(SGXColourRGBA colour);
void setForegroundHoverSelectedColour(SGXColourRGBA colour);
void setForegroundHoverSelectedThemeColour(int themeColour);
void setForegroundHoverThemeColour(int themeColour);
void setForegroundSelectedColour(SGXColourRGBA colour);
void setForegroundSelectedThemeColour(int themeColour);
void setForegroundThemeColour(int themeColour);
void setHorizontalAlignment(SGWHorizontalAlignment::Flag alignment);
void setSelected(bool selected);
void setTextFromFloat(float x);
void setTextFromInt(int x);
void setTextFromString(const SGXString& s);
void setVerticalAlignment(SGWVerticalAlignment::Flag alignment);
SGWButton provides a base class for SGWidget ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ buttons. This is not meant to be instantiated directly, you are supposed to create its subclasses (SGWTextButton, SGWIconButton) to use its functionality. This is interactive and can trigger callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ when pressed down, released, and clicked.
Stores information about the SGWButton.
Int attached to this SGWColourPickerWidget.
This is used to identify the source of the callback in callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
String attached to this SGWColourPickerWidget.
This is used to identify the source of the callback in callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking no arguments, triggered when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a int, triggered when the SGWButton is clicked and SGWButton::attachedInt is passed as argument.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a pointer to SGWButton, triggered when the SGWButton is clicked and the pointer to this SGWButton is passed as argument.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a string, triggered when the SGWButton is clicked and SGWButton::attachedString is passed as argument.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking no arguments, triggered when the SGWButton is pressed down.
This also triggers when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a int, triggered when the SGWButton is pressed down and SGWButton::attachedInt is passed as argument.
This also triggers when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a pointer to SGWButton, triggered when the SGWButton is pressed down and the pointer to this SGWButton is passed as argument.
This also triggers when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a string, triggered when the SGWButton is pressed down and SGWButton::attachedString is passed as argument.
This also triggers when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking no arguments, triggered when the SGWButton is released.
This also triggers when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a int, triggered when the SGWButton is released and SGWButton::attachedInt is passed as argument.
This also triggers when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a pointer to SGWButton, triggered when the SGWButton is released and the pointer to this SGWButton is passed as argument.
This also triggers when the SGWButton is clicked.
callback function ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ taking a string, triggered when the SGWButton is released and SGWButton::attachedString is passed as argument.
This also triggers when the SGWButton is clicked.
Returns the SGXColourRGBA currently being used for the background of this SGWButton. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the background of this SGWButton when focused. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the background of this SGWButton when focused and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the background of this SGWButton when focused and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the background of this SGWButton when focused. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the background of this SGWButton when hovered over. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the background of this SGWButton when hovered over and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the background of this SGWButton when hovered over and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the background of this SGWButton when hovered over. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the background of this SGWButton when marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the background of this SGWButton when marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the background of this SGWButton. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the 0 coordinate of the font size as a w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
Returns the 1 coordinate of the font size as a w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾.
Returns the current font used to display text in the SGWButton.
Returns the SGXColourRGBA currently being used for the foreground of this SGWButton. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the foreground of this SGWButton when focused. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the foreground of this SGWButton when focused and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the foreground of this SGWButton when focused and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the foreground of this SGWButton when focused. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the foreground of this SGWButton when hovered over. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the foreground of this SGWButton when hovered over and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the foreground of this SGWButton when hovered over and marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the foreground of this SGWButton when hovered over. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the SGXColourRGBA currently being used for the foreground of this SGWButton when marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is off, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the foreground of this SGWButton when marked as selected. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ currently being used for the foreground of this SGWButton. The bool that isUsing points to is set to true if theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode is on, and false otherwise.
If you are not interested in the current theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode, pass nullptr to isUsing.
Returns the current SGWHorizontalAlignment mode used to display text in this SGWButton.
Returns if this SGWButton is currently set to selected.
Different SGWButton have independent selection states. More than 1 SGWButton can be set to selected simultaneously.
Returns the text displayed in the SGWButton as a number between minimum and maximum inclusive. If the text does not represent a number or if it is out of bounds, isValid is set to false and 0 is returned, otherwise isValid is set to true.
Pass nullptr to isValid if you are not interested if the text represents a number and the integer is in bounds.
minimum more than maximum is undefined behaviour.
Returns the text displayed in the SGWButton as an integer between minimum and maximum inclusive. If the text does not represent an integer or if it is out of bounds, isValid is set to false and 0 is returned, otherwise isValid is set to true.
Pass nullptr to isValid if you are not interested if the text represents an integer and the integer is in bounds.
minimum more than maximum is undefined behaviour.
Returns the text displayed in the SGWButton.
Returns the current SGWVerticalAlignment mode used to display text in this SGWButton.
Sets the SGXColourRGBA of the background of this SGWButton to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the background of this SGWButton when focused to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the background of this SGWButton when focused and marked as selected to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the background of this SGWButton when focused and marked as selected to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the background of this SGWButton when focused to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the background of this SGWButton when hovered over to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the background of this SGWButton when hovered over and marked as selected to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the background of this SGWButton when hovered over and marked as selected to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the background of this SGWButton when hovered over to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the background of this SGWButton when marked as selected to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the background of this SGWButton when marked as selected to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the background of this SGWButton to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the 0 coordinate of the font size as a w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ to f0.
Sets the 1 coordinate of the font size as a w-distance ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ to f1.
Sets the SGWButton to use font to display text.
If font is not a valid font, this is undefined behaviour.
Sets the SGXColourRGBA of the foreground of this SGWButton to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the foreground of this SGWButton when focused to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the foreground of this SGWButton when focused and marked as selected to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the foreground of this SGWButton when focused and marked as selected to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the foreground of this SGWButton when focused to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the foreground of this SGWButton when hovered over to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the foreground of this SGWButton when hovered over and marked as selected to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the foreground of this SGWButton when hovered over and marked as selected to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the foreground of this SGWButton when hovered over to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGXColourRGBA of the foreground of this SGWButton when marked as selected to colour and turns off theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the foreground of this SGWButton when marked as selected to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ of the foreground of this SGWButton to themeColour and turns on theme colour ⁽㈳㈴㈳㈮㈱㈨㈠㈫ ㈧㈤㈱㈤⁾ mode.
Sets the SGWHorizontalAlignment mode used to display text in this SGWButton to alignment.
If selected is true, sets this SGWButton to selected, otherwise set this SGWButton to not selected.
Different SGWButton have independent selection states. More than 1 SGWButton can be set to selected simultaneously.
Sets the text currently displayed in the SGWButton to the string representation of x.
Sets the text currently displayed in the SGWButton to the string representation of x.
Sets the text currently displayed in the SGWButton to s.
Sets the SGWVerticalAlignment mode used to display text in this SGWButton to alignment.
©2025 05524F.sg (Singapore)