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
float
all
InsetsF(float vertical, float horizontal)
Create an insets with vertical
and horizontal
borders.
Parameters
float
verticalfloat
horizontal
InsetsF(float top, float left, float bottom, float right)
Create an insets with specified borders.
Parameters
float
topfloat
leftfloat
bottomfloat
right
Methods
float top() const
Return the top border.
Return
float
float left() const
Return the left border.
Return
float
float bottom() const
Return the bottom border.
Return
float
float right() const
Return the right border.
Return
float
float width() const
Return the total width taken up by the insets, which is the sum of the left and right insets.
Return
float
float height() const
Return the total height taken up by the insets, which is the sum of the top and bottom insets.
Return
float
bool IsEmpty() const
Return true
if the insets are empty.
Return
bool
std::string ToString() const
Return string representation of the insets.
Return
std::string