class RectangleF

Defined at line 20 of file ../../src/ui/scenic/lib/types/rectangle_f.h

Public Methods

void RectangleF (const RectangleF & )

Defined at line 60 of file ../../src/ui/scenic/lib/types/rectangle_f.h

void RectangleF (RectangleF && )

Defined at line 61 of file ../../src/ui/scenic/lib/types/rectangle_f.h

RectangleF & operator= (const RectangleF & )

Defined at line 62 of file ../../src/ui/scenic/lib/types/rectangle_f.h

RectangleF & operator= (RectangleF && )

Defined at line 63 of file ../../src/ui/scenic/lib/types/rectangle_f.h

void ~RectangleF ()

Defined at line 64 of file ../../src/ui/scenic/lib/types/rectangle_f.h

const Point2F & origin ()

Defined at line 71 of file ../../src/ui/scenic/lib/types/rectangle_f.h

const Extent2F & extent ()

Defined at line 72 of file ../../src/ui/scenic/lib/types/rectangle_f.h

Point2F opposite ()

The corner diagonally opposite from the origin.

Defined at line 74 of file ../../src/ui/scenic/lib/types/rectangle_f.h

float x ()

Defined at line 76 of file ../../src/ui/scenic/lib/types/rectangle_f.h

float y ()

Defined at line 77 of file ../../src/ui/scenic/lib/types/rectangle_f.h

float width ()

Defined at line 78 of file ../../src/ui/scenic/lib/types/rectangle_f.h

float height ()

Defined at line 79 of file ../../src/ui/scenic/lib/types/rectangle_f.h

bool IsValid (const ConstructorArgs & args, bool should_assert)

Returns true iff the args can be used to construct a valid RectangleF.

If `should_assert` is true, invalid args will trigger a FX_DCHECK.

Validity constraints:

- All components MUST be finite.

- Extent components MUST be non-negative.

- The opposite corner MUST be representable without non-finite values.

Defined at line 92 of file ../../src/ui/scenic/lib/types/rectangle_f.h

bool IsValid (const fuchsia_math::RectF & rect, bool should_assert)

static

Defined at line 120 of file ../../src/ui/scenic/lib/types/rectangle_f.h

bool IsValid (const Point2F & origin, const Extent2F & extent, bool should_assert)

static

Defined at line 127 of file ../../src/ui/scenic/lib/types/rectangle_f.h

bool IsValid (const Rectangle & rectangle, bool should_assert)

static

Defined at line 12 of file ../../src/ui/scenic/lib/types/rectangle_f.cc

RectangleF From (const fuchsia_math::RectF & fidl_rectangle)

Constructors. All arguments must be valid; use `IsValid()` to validate if you're not sure.

Defined at line 143 of file ../../src/ui/scenic/lib/types/rectangle_f.h

RectangleF From (const Point2F & origin, const Extent2F & extent)

static

Defined at line 151 of file ../../src/ui/scenic/lib/types/rectangle_f.h

RectangleF From (const Rectangle & rectangle)

May lose precision.

Defined at line 21 of file ../../src/ui/scenic/lib/types/rectangle_f.cc

void RectangleF (const ConstructorArgs & args)

Constructor that enables the designated initializer syntax.

NOLINTNEXTLINE(google-explicit-constructor)

Defined at line 134 of file ../../src/ui/scenic/lib/types/rectangle_f.h

void RectangleF ()

Empty rectangle. Allows usage as key in std C++ containers.

Defined at line 139 of file ../../src/ui/scenic/lib/types/rectangle_f.h

fuchsia_math::RectF ToFidl ()

Defined at line 162 of file ../../src/ui/scenic/lib/types/rectangle_f.h

bool Contains (const Point2F & point, float epsilon)

Defined at line 166 of file ../../src/ui/scenic/lib/types/rectangle_f.h

bool Contains (const Point2F::ConstructorArgs & point, float epsilon)

Defined at line 171 of file ../../src/ui/scenic/lib/types/rectangle_f.h

RectangleF ScaledBy (float scale)

Defined at line 175 of file ../../src/ui/scenic/lib/types/rectangle_f.h

Records

Friends

bool RectangleF (const RectangleF & lhs, const RectangleF & rhs)
bool RectangleF (const RectangleF & lhsconst RectangleF & rhs)