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
floatwidthfloatheight
Methods
float width() const
Return size width.
Return
floatvoid set_width(float width)
Set size width.
Parameters
floatwidth
float height() const
Return size height.
Return
floatvoid set_height(float height)
Set size height.
Parameters
floatheight
bool IsEmpty() const
Return true if the size is zero.
Return
boolstd::string ToString() const
Return string representation of the size.
Return
std::string