TGUI 1.11
|
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. | |
constexpr float | getLeft () const |
Returnes the width of the left outline. | |
constexpr float | getTop () const |
Returnes the height of the top outline. | |
constexpr float | getRight () const |
Returnes the width of the right outline. | |
constexpr float | getBottom () const |
Returnes the height of the bottom outline. | |
constexpr Vector2f | getOffset () const |
Returnes the width of the left and top outlines. | |
constexpr float | getLeftPlusRight () const |
Returnes the width of the left and right outlines combined. | |
constexpr float | getTopPlusBottom () const |
Returnes the height of the top and bottom outlines combined. | |
constexpr bool | operator== (const Outline &outline) const |
Compares two outlines. | |
constexpr bool | operator!= (const Outline &outline) const |
Compares two outlines. | |
constexpr Outline | operator+ (const Outline &other) const |
Adds two outlines together (e.g. to add padding and borders) | |
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) |
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 |
|
inlinenodiscardconstexpr |
Returnes the height of the bottom outline.
|
inlinenodiscardconstexpr |
Returnes the width of the left outline.
|
inlinenodiscardconstexpr |
Returnes the width of the left and right outlines combined.
|
inlinenodiscardconstexpr |
Returnes the width of the left and top outlines.
|
inlinenodiscardconstexpr |
Returnes the width of the right outline.
|
inlinenodiscardconstexpr |
Returnes the height of the top outline.
|
inlinenodiscardconstexpr |
Returnes the height of the top and bottom outlines combined.
|
inlinenodiscardconstexpr |
Compares two outlines.
outline | The outline to compare with this instance |
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 |
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 |
|
inlinenodiscardconstexpr |
Compares two outlines.
outline | The outline to compare with this instance |