class
IButtonAn interface that declares all the functions needed by a button component.
Base classes
- class UTFWinObject
Public static variables
Public static functions
Public functions
- auto ToWindow() -> IWindow* pure virtual
- Returns the UTFWin::
IWindow representation of this button. - auto func5(int arg_0) -> void pure virtual
- auto GetButtonType() -> ButtonTypes pure virtual
- Tells the type of this button (standard, toggle, radio).
- auto SetButtonType(ButtonTypes buttonType) -> void pure virtual
- Sets the type of this button (standard, toggle, radio).
- auto GetButtonStateFlags() -> int pure virtual
- Returns the flags that define the state of this button; a combination of the values in the UTFWin::
ButtonStateFlags enum. - auto SetButtonStateFlags(int flags) -> void pure virtual
- Sets the flags that define the state of this button; a combination of the values in the UTFWin::
ButtonStateFlags enum. - auto SetButtonStateFlag(int flag, bool bValue) -> void pure virtual
- Sets the value of a specific flag that defines the state of this button.
- auto GetButtonFlags() -> int pure virtual
- Gets the flags of this button, which define certain properties about it; it's the combination of values in the UTFWin::
ButtonFlags enum. - auto SetButtonFlags(int flags) -> void pure virtual
- Sets the flags of this button, which define certain properties about it; it's the combination of values in the UTFWin::
ButtonFlags enum. - auto SetButtonFlag(int flag, bool bValue) -> void pure virtual
- Sets the value of a specific flag of this button, which defines certain properties about it; it's the combination of values in the UTFWin::
ButtonFlags enum. - auto GetAlignment() -> AlignmentH pure virtual
- Gets the horizontal alignment of the button within the window area whenever a fixed width flag is set.
- auto SetAlignment(AlignmentH alignment) -> void pure virtual
- Set the horizontal alignment of the button within the window area whenever a fixed width flag is set.
-
auto GetButtonGroupID() -> uint32_
t pure virtual - Allows to group buttons together.
-
auto SetButtonGroupID(uint32_
t groupID) -> void pure virtual - Allows to group buttons together.
-
auto GetCaptionColor(StateIndices index) -> uint32_
t pure virtual - Gets the caption color for the given state.
- auto SetCaptionColor(StateIndices index, Color color) -> void pure virtual
- Sets the caption color for the given state.
-
auto GetCaptionBorders(struct Math::
Rectangle& dst) -> void pure virtual - Gets the caption borders.
-
auto SetCaptionBorders(const struct Math::
Rectangle& borders) -> void pure virtual - Sets the caption borders.
- auto GetCaptionOffset(struct Point& dst) -> void pure virtual
- Gets the caption offset to be used when the button is selected/depressed.
- auto SetCaptionOffset(const struct Point& offset) -> void pure virtual
- Set the caption offset to be used when the button is selected/depressed.
- auto SetButtonDrawable(IButtonDrawable* pDrawable) -> void pure virtual
- Sets the object to render button appearance, which must be an UTFWin::
IButtonDrawable. - auto GetButtonDrawable() -> IButtonDrawable* pure virtual
- Gets the object to render button appearance, which must be an UTFWin::
IButtonDrawable. - auto GetTextOutline() -> OutlineFormat& pure virtual
- Gets the text outline format.
- auto SetTextOutline(OutlineFormat& format) -> void pure virtual
- Sets the text outline format.
- auto SetButtonPressed(bool bValue) -> void
- Custom method that sets if the button is pressed or not.
- auto IsButtonPressed() -> bool
- Custom method that returns if the button is pressed or not.
Function documentation
ButtonTypes UTFWin:: IButton:: GetButtonType() pure virtual
Tells the type of this button (standard, toggle, radio).
Returns | A value in the enum UTFWin:: |
---|
void UTFWin:: IButton:: SetButtonType(ButtonTypes buttonType) pure virtual
Sets the type of this button (standard, toggle, radio).
Parameters | |
---|---|
buttonType | A value in the enum UTFWin:: |
void UTFWin:: IButton:: SetButtonStateFlags(int flags) pure virtual
Sets the flags that define the state of this button; a combination of the values in the UTFWin::
Parameters | |
---|---|
flags |
void UTFWin:: IButton:: SetButtonStateFlag(int flag,
bool bValue) pure virtual
Sets the value of a specific flag that defines the state of this button.
Parameters | |
---|---|
flag | The flag that must be changed, which belongs to the enum UTFWin:: |
bValue | The new boolean value of the flag. |
void UTFWin:: IButton:: SetButtonFlags(int flags) pure virtual
Sets the flags of this button, which define certain properties about it; it's the combination of values in the UTFWin::
Parameters | |
---|---|
flags |
void UTFWin:: IButton:: SetButtonFlag(int flag,
bool bValue) pure virtual
Sets the value of a specific flag of this button, which defines certain properties about it; it's the combination of values in the UTFWin::
Parameters | |
---|---|
flag | The flag that must be changed, which belongs to the enum UTFWin:: |
bValue | The new boolean value of the flag. |
AlignmentH UTFWin:: IButton:: GetAlignment() pure virtual
Gets the horizontal alignment of the button within the window area whenever a fixed width flag is set.
Returns | A value in the UTFWin:: |
---|
This is only the horizontal alignment, the button is always centered vertically. The caption text area always complements the alignment of the button.
void UTFWin:: IButton:: SetAlignment(AlignmentH alignment) pure virtual
Set the horizontal alignment of the button within the window area whenever a fixed width flag is set.
Parameters | |
---|---|
alignment | A value in the UTFWin:: |
This is only the horizontal alignment, the button is always centered vertically. The caption text area always complements the alignment of the button.
uint32_ t UTFWin:: IButton:: GetButtonGroupID() pure virtual
Allows to group buttons together.
Returns | An ID that represents this button group. |
---|
Combined with radio button type this enables radio button group control.
void UTFWin:: IButton:: SetButtonGroupID(uint32_ t groupID) pure virtual
Allows to group buttons together.
Parameters | |
---|---|
groupID | An ID that represents the button group. |
Combined with radio button type this enables radio button group control.
uint32_ t UTFWin:: IButton:: GetCaptionColor(StateIndices index) pure virtual
Gets the caption color for the given state.
Parameters | |
---|---|
index | The state whose color must be returned, in the UTFWin:: |
The return value can be casted to Math::
void UTFWin:: IButton:: SetCaptionColor(StateIndices index,
Color color) pure virtual
Sets the caption color for the given state.
Parameters | |
---|---|
index | The state whose color must be changed, in the UTFWin:: |
color | The new color. |
void UTFWin:: IButton:: GetCaptionBorders(struct Math:: Rectangle& dst) pure virtual
Gets the caption borders.
Parameters | |
---|---|
dst out | The Math:: |
void UTFWin:: IButton:: SetCaptionBorders(const struct Math:: Rectangle& borders) pure virtual
Sets the caption borders.
Parameters | |
---|---|
borders | The Math:: |
void UTFWin:: IButton:: GetCaptionOffset(struct Point& dst) pure virtual
Gets the caption offset to be used when the button is selected/depressed.
Parameters | |
---|---|
dst out | The Math:: |
void UTFWin:: IButton:: SetCaptionOffset(const struct Point& offset) pure virtual
Set the caption offset to be used when the button is selected/depressed.
Parameters | |
---|---|
offset | The Math:: |
void UTFWin:: IButton:: SetButtonDrawable(IButtonDrawable* pDrawable) pure virtual
Sets the object to render button appearance, which must be an UTFWin::
Parameters | |
---|---|
pDrawable |
void UTFWin:: IButton:: SetTextOutline(OutlineFormat& format) pure virtual
Sets the text outline format.
Parameters | |
---|---|
format |