SizeF

Size type.

Header#include "nativeui/gfx/geometry/size_f.h"
Namespacenamespace nu
Typeclass

Constructors

SizeF()

Create an empty size.

SizeF(float width, float height)

Create a size with width and height.

Parameters

Methods

float width() const

Return size width.

Return

float

void set_width(float width)

Set size width.

Parameters

float height() const

Return size height.

Return

float

void set_height(float height)

Set size height.

Parameters

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