class LightValue
Defined at line 5601 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_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 ()
void LightValue (const LightValue & )
Defined at line 5606 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h
LightValue & operator= (const LightValue & )
Defined at line 5607 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h
void LightValue (LightValue && )
Defined at line 5608 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h
bool has_invalid_tag ()
bool is_on ()
LightValue WithOn (bool val)
Lights with LightType.SIMPLE will have this value.
bool & on ()
Lights with LightType.SIMPLE will have this value.
const bool & on ()
Lights with LightType.SIMPLE will have this value.
bool is_brightness ()
LightValue WithBrightness (::fidl::ObjectView<double> val)
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 & operator= (LightValue && )
Defined at line 5609 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h
template <typename... Args>
LightValue WithBrightness (::fidl::AnyArena & allocator, Args &&... args)
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.
Defined at line 5643 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h
double & brightness ()
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.
const double & brightness ()
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.
bool is_color ()
LightValue WithColor (::fidl::ObjectView< ::fuchsia_ui_types::wire::ColorRgb> val)
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.
template <typename... Args>
LightValue WithColor (::fidl::AnyArena & allocator, Args &&... args)
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.
Defined at line 5675 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h
::fuchsia_ui_types::wire::ColorRgb & color ()
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.
const ::fuchsia_ui_types::wire::ColorRgb & color ()
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.
::fuchsia_settings::wire::LightValue::Tag Which ()
Enumerations
enum Tag
| Name | Value |
|---|---|
| kOn | 1 |
| kBrightness | 2 |
| kColor | 3 |
Defined at line 5611 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/cpp/fidl/fuchsia.settings/cpp/wire_types.h