class Mode
Defined at line 29 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
Equivalent to the FIDL type [`fuchsia.hardware.display.types/Mode`].
Instances are guaranteed to represent display modes supported by the display
stack.
This is a value type. Instances can be stored in containers. Copying, moving
and destruction are trivial.
Public Members
static const int32_t kMaxRefreshRateMillihertz
Public Methods
void Mode (const Mode & )
Defined at line 56 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
void Mode (Mode && )
Defined at line 57 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
Mode & operator= (const Mode & )
Defined at line 58 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
Mode & operator= (Mode && )
Defined at line 59 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
void ~Mode ()
Defined at line 60 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
Dimensions active_area ()
Guaranteed to meet the requirements in the FIDL documentation.
Defined at line 68 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
int32_t refresh_rate_millihertz ()
Guaranteed to meet the requirements in the FIDL documentation.
Defined at line 71 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
bool IsValid (const fuchsia_hardware_display_types::wire::Mode & fidl_mode)
True iff `fidl_mode` is convertible to a valid Mode.
Defined at line 92 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
Mode From (const fuchsia_hardware_display_types::wire::Mode & fidl_mode)
`fidl_mode` must be convertible to a valid Mode.
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.hardware.display.types/Mode` has the same
field names as our supported designated initializer syntax.
Defined at line 123 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
void Mode (const Mode::ConstructorArgs & args)
Constructor that enables the designated initializer syntax with containers.
NOLINTNEXTLINE(google-explicit-constructor)
Defined at line 116 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
fuchsia_hardware_display_types::wire::Mode ToFidl ()
Defined at line 141 of file ../../src/graphics/display/lib/api-types/cpp/mode.h
Friends
bool Mode (const Mode & lhs, const Mode & rhs)
bool Mode (const Mode & lhsconst Mode & rhs)