InsetsF
Borders inside rectangle.
| Header | #include "nativeui/gfx/geometry/insets_f.h" |
| Namespace | namespace nu |
| Type | class |
Constructors
InsetsF()
Create an empty insets.
InsetsF(float all)
Create an insets using all as borders.
Parameters
floatall
InsetsF(float vertical, float horizontal)
Create an insets with vertical and horizontal borders.
Parameters
floatverticalfloathorizontal
InsetsF(float top, float left, float bottom, float right)
Create an insets with specified borders.
Parameters
floattopfloatleftfloatbottomfloatright
Methods
float top() const
Return the top border.
Return
floatfloat left() const
Return the left border.
Return
floatfloat bottom() const
Return the bottom border.
Return
floatfloat right() const
Return the right border.
Return
floatfloat width() const
Return the total width taken up by the insets, which is the sum of the left and right insets.
Return
floatfloat height() const
Return the total height taken up by the insets, which is the sum of the top and bottom insets.
Return
floatbool IsEmpty() const
Return true if the insets are empty.
Return
boolstd::string ToString() const
Return string representation of the insets.
Return
std::string