class Extent2F
Defined at line 18 of file ../../src/ui/scenic/lib/types/extent2_f.h
Public Methods
void Extent2F (const Extent2F & )
Defined at line 45 of file ../../src/ui/scenic/lib/types/extent2_f.h
void Extent2F (Extent2F && )
Defined at line 46 of file ../../src/ui/scenic/lib/types/extent2_f.h
Extent2F & operator= (const Extent2F & )
Defined at line 47 of file ../../src/ui/scenic/lib/types/extent2_f.h
Extent2F & operator= (Extent2F && )
Defined at line 48 of file ../../src/ui/scenic/lib/types/extent2_f.h
void ~Extent2F ()
Defined at line 49 of file ../../src/ui/scenic/lib/types/extent2_f.h
float width ()
Guaranteed to be finite and non-negative.
Defined at line 58 of file ../../src/ui/scenic/lib/types/extent2_f.h
float height ()
Guaranteed to be finite and non-negative.
Defined at line 61 of file ../../src/ui/scenic/lib/types/extent2_f.h
bool IsEmpty ()
True iff the extent represent an empty region.
Defined at line 64 of file ../../src/ui/scenic/lib/types/extent2_f.h
bool IsValid (float width, float height, bool should_assert)
Returns true iff the args can be used to construct a valid Extent2F.
If `should_assert` is true, invalid args will trigger a FX_DCHECK.
Validity constraints:
- width and height MUST be finite and non-negative.
Defined at line 77 of file ../../src/ui/scenic/lib/types/extent2_f.h
bool IsValid (const fuchsia_math::SizeF & fidl_size, bool should_assert)
static
Defined at line 90 of file ../../src/ui/scenic/lib/types/extent2_f.h
bool IsValid (const fuchsia_math::wire::SizeF & fidl_size, bool should_assert)
static
Defined at line 95 of file ../../src/ui/scenic/lib/types/extent2_f.h
Extent2F From (const fuchsia_math::SizeF & fidl_size)
`fidl_size` must be convertible to a valid Extent2F instance.
Defined at line 105 of file ../../src/ui/scenic/lib/types/extent2_f.h
Extent2F From (const fuchsia_math::wire::SizeF & fidl_size)
static
Defined at line 111 of file ../../src/ui/scenic/lib/types/extent2_f.h
void Extent2F (const ConstructorArgs & args)
Constructor that enables the designated initializer syntax.
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 99 of file ../../src/ui/scenic/lib/types/extent2_f.h
fuchsia_math::SizeF ToFidl ()
Defined at line 122 of file ../../src/ui/scenic/lib/types/extent2_f.h
fuchsia_math::wire::SizeF ToWire ()
Defined at line 124 of file ../../src/ui/scenic/lib/types/extent2_f.h
Friends
bool Extent2F (const Extent2F & lhs, const Extent2F & rhs)
bool Extent2F (const Extent2F & lhsconst Extent2F & rhs)