SizeF
Size type.
Header | #include "nativeui/gfx/geometry/size_f.h" |
Namespace | namespace nu |
Type | class |
Constructors
SizeF()
Create an empty size.
SizeF(float width, float height)
Create a size with width
and height
.
Parameters
float
widthfloat
height
Methods
float width() const
Return size width.
Return
float
void set_width(float width)
Set size width.
Parameters
float
width
float height() const
Return size height.
Return
float
void set_height(float height)
Set size height.
Parameters
float
height
bool IsEmpty() const
Return true
if the size is zero.
Return
bool
std::string ToString() const
Return string representation of the size.
Return
std::string