class Extent2

Defined at line 16 of file ../../src/ui/scenic/lib/types/extent2.h

Public Methods

void Extent2 (const Extent2 & )

Defined at line 48 of file ../../src/ui/scenic/lib/types/extent2.h

void Extent2 (Extent2 && )

Defined at line 49 of file ../../src/ui/scenic/lib/types/extent2.h

Extent2 & operator= (const Extent2 & )

Defined at line 50 of file ../../src/ui/scenic/lib/types/extent2.h

Extent2 & operator= (Extent2 && )

Defined at line 51 of file ../../src/ui/scenic/lib/types/extent2.h

void ~Extent2 ()

Defined at line 52 of file ../../src/ui/scenic/lib/types/extent2.h

int32_t width ()

Guaranteed to be non-negative.

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

int32_t height ()

Guaranteed to be non-negative.

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

bool IsEmpty ()

True iff the extent represent an empty region.

Defined at line 67 of file ../../src/ui/scenic/lib/types/extent2.h

bool IsValid (int32_t width, int32_t height, bool should_assert)

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

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

Validity constraints:

- width and height MUST be non-negative

Defined at line 80 of file ../../src/ui/scenic/lib/types/extent2.h

bool IsValid (const fuchsia_math::SizeU & fidl_size, bool should_assert)

static

Defined at line 93 of file ../../src/ui/scenic/lib/types/extent2.h

bool IsValid (const fuchsia_math::wire::SizeU & fidl_size, bool should_assert)

static

Defined at line 104 of file ../../src/ui/scenic/lib/types/extent2.h

Extent2 From (const fuchsia_math::SizeU & fidl_size)

`fidl_size` must be convertible to a valid Extent2 instance.

This is not a constructor, to allow designated initializer syntax. Making

this a constructor would introduce ambiguity when designated initializer

syntax is used, because `fuchsia.math/SizeU` has the same field names as

our supported designated initializer syntax.

Defined at line 119 of file ../../src/ui/scenic/lib/types/extent2.h

Extent2 From (const fuchsia_math::wire::SizeU & fidl_size)

static

Defined at line 128 of file ../../src/ui/scenic/lib/types/extent2.h

void Extent2 (const Extent2::ConstructorArgs & args)

Constructor that enables the designated initializer syntax.

NOLINTNEXTLINE(google-explicit-constructor)

Defined at line 114 of file ../../src/ui/scenic/lib/types/extent2.h

fuchsia_math::SizeU ToFidl ()

Defined at line 142 of file ../../src/ui/scenic/lib/types/extent2.h

fuchsia_math::wire::SizeU ToWire ()

Defined at line 148 of file ../../src/ui/scenic/lib/types/extent2.h

Friends

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