--- ---
|
TGUI
1.x-dev
|
Public Member Functions | |
| constexpr | Outline (AbsoluteOrRelativeValue size=0) |
| Default constructor that initializes the outline. | |
| template<typename T , typename = typename std::enable_if_t<std::is_arithmetic<T>::value, T>> | |
| constexpr | Outline (T size) |
| Constructor that initializes the outline. | |
| constexpr | Outline (AbsoluteOrRelativeValue width, AbsoluteOrRelativeValue height) |
| Constructor that initializes the outline. | |
| constexpr | Outline (AbsoluteOrRelativeValue leftBorderWidth, AbsoluteOrRelativeValue topBorderHeight, AbsoluteOrRelativeValue rightBorderWidth, AbsoluteOrRelativeValue bottomBorderHeight) |
| Constructor that initializes the outline. | |
| TGUI_NODISCARD constexpr float | getLeft () const |
| Returnes the width of the left border. | |
| TGUI_NODISCARD constexpr float | getTop () const |
| Returnes the height of the top border. | |
| TGUI_NODISCARD constexpr float | getRight () const |
| Returnes the width of the right border. | |
| TGUI_NODISCARD constexpr float | getBottom () const |
| Returnes the height of the bottom border. | |
| TGUI_NODISCARD constexpr Vector2f | getOffset () const |
| Returnes the width of the left and top borders. | |
| TGUI_NODISCARD constexpr bool | operator== (const Outline &outline) const |
| Compares two outlines. | |
| TGUI_NODISCARD constexpr bool | operator!= (const Outline &outline) const |
| Compares two outlines. | |
| TGUI_NODISCARD constexpr Outline | operator+ (const Outline &other) const |
| Adds two outlines together (e.g. to add padding and borders) | |
| TGUI_NODISCARD constexpr Outline | operator- (const Outline &other) const |
| Subtracts two outlines from each other. | |
| constexpr Outline & | operator+= (const Outline &other) |
| Adds an outline to this instance (e.g. to add padding and borders) | |
| constexpr Outline & | operator-= (const Outline &other) |
| Subtracts an outline from this instance. | |
| constexpr void | updateParentSize (Vector2f newParentSize) |
| TGUI_NODISCARD String | toString () const |
|
inlineconstexpr |
Default constructor that initializes the outline.
| size | Width and height of the outline in all directions |
|
inlineconstexpr |
Constructor that initializes the outline.
| size | Width and height of the outline in all directions |
|
inlineconstexpr |
Constructor that initializes the outline.
| width | Width of the left and right outline |
| height | Height of the top and bottom outline |
|
inlineconstexpr |
Constructor that initializes the outline.
| leftBorderWidth | Width of the left outline |
| topBorderHeight | Height of the top outline |
| rightBorderWidth | Width of the right outline |
| bottomBorderHeight | Height of the bottom outline |
|
inlineconstexpr |
Returnes the height of the bottom border.
|
inlineconstexpr |
Returnes the width of the left border.
|
inlineconstexpr |
Returnes the width of the left and top borders.
|
inlineconstexpr |
Returnes the width of the right border.
|
inlineconstexpr |
Returnes the height of the top border.
|
inlineconstexpr |
Compares two outlines.
| outline | The outline to compare with this instance |
|
inlineconstexpr |
Adds two outlines together (e.g. to add padding and borders)
| other | The outline to add together with this instance |
Adds an outline to this instance (e.g. to add padding and borders)
| other | The outline to add to this instance |
|
inlineconstexpr |
Subtracts two outlines from each other.
| other | The outline to subtract from this instance |
Subtracts an outline from this instance.
| other | The outline to subtract from this instance |
|
inlineconstexpr |
Compares two outlines.
| outline | The outline to compare with this instance |