class PowerMode

Defined at line 28 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

Equivalent to the FIDL type [`fuchsia.hardware.display.types/PowerMode`].

See `::fuchsia_hardware_display_types::wire::PowerMode` for references.

Instances are guaranteed to represent valid enum members.

This is a value type. Instances can be stored in containers. Copying, moving

and destruction are trivial.

Public Members

static PowerMode kOff
static PowerMode kOn
static PowerMode kDoze
static PowerMode kDozeSuspend

Public Methods

void PowerMode (const PowerMode & )

Defined at line 36 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

void PowerMode (PowerMode && )

Defined at line 37 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

PowerMode & operator= (const PowerMode & )

Defined at line 38 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

PowerMode & operator= (PowerMode && )

Defined at line 39 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

void ~PowerMode ()

Defined at line 40 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

bool IsValid (fuchsia_hardware_display_types::wire::PowerMode fidl_power_mode)

True iff `fidl_power_mode` is convertible to a valid PowerMode.

Defined at line 67 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

void PowerMode (fuchsia_hardware_display_types::wire::PowerMode fidl_power_mode)

Defined at line 80 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

fuchsia_hardware_display_types::wire::PowerMode ToFidl ()

Defined at line 91 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

uint32_t ValueForLogging ()

Raw numerical value of the equivalent FIDL value.

This is intended to be used for developer-facing output, such as logging

and Inspect. The values have the same stability guarantees as the

equivalent FIDL type.

Defined at line 95 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.h

std::string_view ToString ()

Returns a developer-facing string representation.

Defined at line 23 of file ../../src/graphics/display/lib/api-types/cpp/power-mode.cc

Friends

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