InsetsF

Borders inside rectangle.

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

Constructors

InsetsF()

Create an empty insets.

InsetsF(float all)

Create an insets using all as borders.

Parameters

InsetsF(float vertical, float horizontal)

Create an insets with vertical and horizontal borders.

Parameters

InsetsF(float top, float left, float bottom, float right)

Create an insets with specified borders.

Parameters

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

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