class LightValue
Defined at line 4350 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
Value of a light. Only one of the three values in the union will be present,
depending on the light's LightType.
Public Members
static const fidl_type_t * FidlType
Public Methods
void LightValue ()
void LightValue (LightValue && )
LightValue WithOn (bool && )
LightValue WithBrightness (double && )
LightValue WithColor (::fuchsia::ui::types::ColorRgb && )
::std::unique_ptr<LightValue> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, LightValue * value, size_t offset)
zx_status_t Clone (LightValue * result)
bool has_invalid_tag ()
Defined at line 4379 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
bool is_on ()
Defined at line 4383 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
bool & on ()
Lights with LightType.SIMPLE will have this value.
Defined at line 4386 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
const bool & on ()
Lights with LightType.SIMPLE will have this value.
Defined at line 4392 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
bool is_brightness ()
Defined at line 4398 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.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.
Defined at line 4404 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
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.
Defined at line 4413 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
bool is_color ()
Defined at line 4419 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
::fuchsia::ui::types::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.
Defined at line 4426 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
const ::fuchsia::ui::types::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.
Defined at line 4436 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
::fuchsia::settings::LightValue::Tag Which ()
Defined at line 4442 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
fidl_xunion_tag_t Ordinal ()
You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need
access to the raw integral ordinal value.
Defined at line 4450 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
void ~LightValue ()
LightValue & operator= (LightValue && )
LightValue & set_on (bool value)
LightValue & set_brightness (double value)
LightValue & set_color (::fuchsia::ui::types::ColorRgb value)
Enumerations
enum Tag
| Name | Value |
|---|---|
| kOn | 1 |
| kBrightness | 2 |
| kColor | 3 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() |
Defined at line 4364 of file fidling/gen/sdk/fidl/fuchsia.settings/fuchsia.settings/hlcpp/fuchsia/settings/cpp/fidl.h
Friends
class Equality