class ColorTransformConfiguration

Defined at line 88 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

The current configuration for accessibility color transforms, which includes color inversion and

color correction. This always includes the matrix required to apply the appropriate transforms.

Color correction and color inversion may be active simultaneously.

For original RGB value (r, g, b) (each component ranged between 0 and 1), the RGB value of

corrected color (r', g', b') is

(r', g', b') = color_adjustment_post_offset

+ color_adjustment_matrix . ((r, g, b) + color_adjustment_pre_offset).

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

ColorTransformConfiguration & set_color_inversion_enabled (bool _value)
ColorTransformConfiguration & set_color_correction (::fuchsia::accessibility::ColorCorrectionMode _value)
ColorTransformConfiguration & set_color_adjustment_matrix (::std::array<float, 9> _value)
ColorTransformConfiguration & set_color_adjustment_pre_offset (::std::array<float, 3> _value)
ColorTransformConfiguration & set_color_adjustment_post_offset (::std::array<float, 3> _value)
void ColorTransformConfiguration ()
void ColorTransformConfiguration (ColorTransformConfiguration && other)
void ~ColorTransformConfiguration ()
ColorTransformConfiguration & operator= (ColorTransformConfiguration && other)
::std::unique_ptr<ColorTransformConfiguration> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ColorTransformConfiguration * _value, size_t _offset)
zx_status_t Clone (ColorTransformConfiguration * _result)
const bool & color_inversion_enabled ()

When color_inversion_enabled is true, certain colors are inverted across the entire screen.

If this field is omitted behavior should remain unchanged.

Defined at line 96 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

bool has_color_inversion_enabled ()

Defined at line 100 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

bool * mutable_color_inversion_enabled ()

When color_inversion_enabled is true, certain colors are inverted across the entire screen.

If this field is omitted behavior should remain unchanged.

Defined at line 106 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

void clear_color_inversion_enabled ()

Defined at line 114 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

const ::fuchsia::accessibility::ColorCorrectionMode & color_correction ()

When color_correction is set to DISABLED, colors are displayed normally. When

color_correction has different value, colors are modified to correct for the specified type

of color blindness. If this field is omitted behavior should remain unchanged.

Defined at line 125 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

bool has_color_correction ()

Defined at line 129 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

::fuchsia::accessibility::ColorCorrectionMode * mutable_color_correction ()

When color_correction is set to DISABLED, colors are displayed normally. When

color_correction has different value, colors are modified to correct for the specified type

of color blindness. If this field is omitted behavior should remain unchanged.

Defined at line 136 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

void clear_color_correction ()

Defined at line 144 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

const ::std::array<float, 9> & color_adjustment_matrix ()

3x3 Matrix in row-major form which will be used by root presenter to apply color correction

and color inversion, or a combination fo the two. This field should always be set.

Defined at line 154 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

bool has_color_adjustment_matrix ()

Defined at line 158 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

::std::array<float, 9> * mutable_color_adjustment_matrix ()

3x3 Matrix in row-major form which will be used by root presenter to apply color correction

and color inversion, or a combination fo the two. This field should always be set.

Defined at line 164 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

void clear_color_adjustment_matrix ()

Defined at line 172 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

const ::std::array<float, 3> & color_adjustment_pre_offset ()

3x1 vector which is used by root presenter as an offset added to the original RGB color,

before it multiplies with the |color_adjustment_matrix|. This field should always be set.

Defined at line 182 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

bool has_color_adjustment_pre_offset ()

Defined at line 186 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

::std::array<float, 3> * mutable_color_adjustment_pre_offset ()

3x1 vector which is used by root presenter as an offset added to the original RGB color,

before it multiplies with the |color_adjustment_matrix|. This field should always be set.

Defined at line 192 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

void clear_color_adjustment_pre_offset ()

Defined at line 200 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

const ::std::array<float, 3> & color_adjustment_post_offset ()

3x1 vector which is used by root presenter as an offset added to the multiplied result

of |color_adjustment_matrix| and original RGB color. This field should always be set.

Defined at line 210 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

bool has_color_adjustment_post_offset ()

Defined at line 214 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

::std::array<float, 3> * mutable_color_adjustment_post_offset ()

3x1 vector which is used by root presenter as an offset added to the multiplied result

of |color_adjustment_matrix| and original RGB color. This field should always be set.

Defined at line 220 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h

void clear_color_adjustment_post_offset ()

Defined at line 228 of file fidling/gen/sdk/fidl/fuchsia.accessibility/fuchsia.accessibility/hlcpp/fuchsia/accessibility/cpp/fidl.h