class LightValue

Defined at line 3196 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/natural_types.h

Value of a light. Only one of the three values in the union will be present,

depending on the light's LightType.

Public Methods

void LightValue (LightValue && other)
LightValue & operator= (LightValue && other)
void LightValue (const LightValue & other)
LightValue & operator= (const LightValue & other)
bool operator== (const LightValue & other)
bool operator!= (const LightValue & other)
::fuchsia_settings::LightValue::Tag Which ()
LightValue WithOn (bool val)
const ::fidl::internal::UnionMemberView<1, Storage_> on ()
::fidl::internal::UnionMemberView<1, Storage_> on ()
LightValue & on (bool value)

Lights with LightType.SIMPLE will have this value.

LightValue WithBrightness (double val)
const ::fidl::internal::UnionMemberView<2, Storage_> brightness ()
::fidl::internal::UnionMemberView<2, Storage_> brightness ()
LightValue & brightness (double value)

Lights with LightType.BRIGHTNESS will have this value, a floating point

value 0.0 to 1.0 inclusive, where 0.0 means the light is off. Not a

number (NaN), infinity or negative infinity will cause SetLightGroup to

fail with INVALID_VALUE.

LightValue WithColor (::fuchsia_ui_types::ColorRgb val)
const ::fidl::internal::UnionMemberView<3, Storage_> color ()
::fidl::internal::UnionMemberView<3, Storage_> color ()
LightValue & color (::fuchsia_ui_types::ColorRgb value)

Lights with LightType.RGB will have this value.

Each color channel should be a value between 0.0 and 1.0 inclusive.

Values outside this range will cause SetLightGroup to fail with

INVALID_VALUE.

void LightValue (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kOn 1
kBrightness 2
kColor 3

TODO: share union tag types between wire

&

natural.

Defined at line 3207 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits