◆ Outline() [1/4]
Default constructor that initializes the outline.
- Parameters
-
size | Width and height of the outline in all directions |
◆ Outline() [2/4]
template<typename T , typename = typename std::enable_if_t<std::is_arithmetic<T>::value, T>>
tgui::Outline::Outline |
( |
T | size | ) |
|
|
inlineconstexpr |
Constructor that initializes the outline.
- Parameters
-
size | Width and height of the outline in all directions |
◆ Outline() [3/4]
Constructor that initializes the outline.
- Parameters
-
width | Width of the left and right outline |
height | Height of the top and bottom outline |
◆ Outline() [4/4]
Constructor that initializes the outline.
- Parameters
-
leftBorderWidth | Width of the left outline |
topBorderHeight | Height of the top outline |
rightBorderWidth | Width of the right outline |
bottomBorderHeight | Height of the bottom outline |
◆ getBottom()
float tgui::Outline::getBottom |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Returnes the height of the bottom border.
- Returns
- Bottom border height
◆ getLeft()
float tgui::Outline::getLeft |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Returnes the width of the left border.
- Returns
- Left border width
◆ getOffset()
Vector2f tgui::Outline::getOffset |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Returnes the width of the left and top borders.
- Returns
- Left and top borders
◆ getRight()
float tgui::Outline::getRight |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Returnes the width of the right border.
- Returns
- Right border width
◆ getTop()
float tgui::Outline::getTop |
( |
| ) |
const |
|
inlinenodiscardconstexpr |
Returnes the height of the top border.
- Returns
- Top border height
◆ operator!=()
bool tgui::Outline::operator!= |
( |
const Outline & | outline | ) |
const |
|
inlinenodiscardconstexpr |
Compares two outlines.
- Parameters
-
outline | The outline to compare with this instance |
- Returns
- Whether the outlines are equal or not
◆ operator+()
Adds two outlines together (e.g. to add padding and borders)
- Parameters
-
other | The outline to add together with this instance |
◆ operator+=()
Adds an outline to this instance (e.g. to add padding and borders)
- Parameters
-
other | The outline to add to this instance |
◆ operator-()
Subtracts two outlines from each other.
- Parameters
-
other | The outline to subtract from this instance |
◆ operator-=()
Subtracts an outline from this instance.
- Parameters
-
other | The outline to subtract from this instance |
◆ operator==()
bool tgui::Outline::operator== |
( |
const Outline & | outline | ) |
const |
|
inlinenodiscardconstexpr |
Compares two outlines.
- Parameters
-
outline | The outline to compare with this instance |
- Returns
- Whether the outlines are equal or not
The documentation for this class was generated from the following file: