Clutter.ColorState
Description: Reference for Clutter.ColorState

### Class

# ClutterColorState

#### Description [src]

    class Clutter.ColorState : GObject.Object
    {
      /* No available fields */
    }

Color state of each ClutterActor

The `ClutterColorState` class contains the colorspace of each color states (e.g. sRGB colorspace).

Each `ClutterActor` would own such an object.

A single `ClutterColorState` object can be shared by multiple `ClutterActor` or maybe a separate color state for each `ClutterActor` (depending on whether `ClutterColorState` would be statefull or stateless).

`ClutterColorState`, if not set during construction, it will default to sRGB color state

The `ClutterColorState` would have API to get the colorspace, whether the actor content is in pq or not, and things like that.

#### Hierarchy

#### Ancestors

- GObject

#### Descendants

- ClutterColorStateIcc
- ClutterColorStateParams

#### Instance methods

###### clutter_color_state_add_pipeline_transform

No description available.

###### clutter_color_state_do_transform

Applies the transform to the given `ClutterColorState`.

###### clutter_color_state_equals

No description available.

###### clutter_color_state_get_blending

Retrieves a variant of `color_state` that is suitable for blending. This usually is a variant with linear transfer characteristics. If `color_state` already is a `ClutterColorState` suitable for blending, then `color_state` is returned.

###### clutter_color_state_get_id

No description available.

###### clutter_color_state_needs_mapping

No description available.

###### clutter_color_state_params_do_tone_mapping

Applies the tone mapping to the given `ClutterColorState`.

###### clutter_color_state_required_format

No description available.

###### clutter_color_state_to_string

No description available.

###### clutter_color_state_update_uniforms

No description available.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Clutter.ColorState:context

The associated ClutterContext.

#### Signals

###### Clutter.ColorState::destroyed

No description available.

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct ClutterColorStateClass {
      GObjectClass parent_class;
      void (* init_color_transform_key) (
        ClutterColorState* color_state,
        ClutterColorState* target_color_state,
        ClutterColorStateTransformFlags flags,
        ClutterColorTransformKey* key
      );
      void (* append_transform_snippet) (
        ClutterColorState* color_state,
        ClutterColorState* target_color_state,
        GString* snippet_globals,
        GString* snippet_source,
        const char* snippet_color_var
      );
      void (* update_uniforms) (
        ClutterColorState* color_state,
        ClutterColorState* target_color_state,
        CoglPipeline* pipeline
      );
      void (* do_transform_to_XYZ) (
        ClutterColorState* color_state,
        float* data,
        int n_samples
      );
      void (* do_transform_from_XYZ) (
        ClutterColorState* color_state,
        float* data,
        int n_samples
      );
      gboolean (* equals) (
        ClutterColorState* color_state,
        ClutterColorState* other_color_state
      );
      gboolean (* needs_mapping) (
        ClutterColorState* color_state,
        ClutterColorState* target_color_state
      );
      char* (* to_string) (
        ClutterColorState* color_state
      );
      ClutterEncodingRequiredFormat (* required_format) (
        ClutterColorState* color_state
      );
      ClutterColorState* (* get_blending) (
        ClutterColorState* color_state,
        gboolean force
      );

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.

`init_color_transform_key: void (* init_color_transform_key) ( ClutterColorState* color_state, ClutterColorState* target_color_state, ClutterColorStateTransformFlags flags, ClutterColorTransformKey* key )`

  No description available.

`append_transform_snippet: void (* append_transform_snippet) ( ClutterColorState* color_state, ClutterColorState* target_color_state, GString* snippet_globals, GString* snippet_source, const char* snippet_color_var )`

  No description available.

`update_uniforms: void (* update_uniforms) ( ClutterColorState* color_state, ClutterColorState* target_color_state, CoglPipeline* pipeline )`

  No description available.

`do_transform_to_XYZ: void (* do_transform_to_XYZ) ( ClutterColorState* color_state, float* data, int n_samples )`

  No description available.

`do_transform_from_XYZ: void (* do_transform_from_XYZ) ( ClutterColorState* color_state, float* data, int n_samples )`

  No description available.

`equals: gboolean (* equals) ( ClutterColorState* color_state, ClutterColorState* other_color_state )`

  No description available.

`needs_mapping: gboolean (* needs_mapping) ( ClutterColorState* color_state, ClutterColorState* target_color_state )`

  No description available.

`to_string: char* (* to_string) ( ClutterColorState* color_state )`

  No description available.

`required_format: ClutterEncodingRequiredFormat (* required_format) ( ClutterColorState* color_state )`

  No description available.

`get_blending: ClutterColorState* (* get_blending) ( ClutterColorState* color_state, gboolean force )`

  No description available.

#### Virtual methods

###### Clutter.ColorStateClass.append_transform_snippet

No description available.

###### Clutter.ColorStateClass.do_transform_from_XYZ

No description available.

###### Clutter.ColorStateClass.do_transform_to_XYZ

No description available.

###### Clutter.ColorStateClass.equals

No description available.

###### Clutter.ColorStateClass.get_blending

Retrieves a variant of `color_state` that is suitable for blending. This usually is a variant with linear transfer characteristics. If `color_state` already is a `ClutterColorState` suitable for blending, then `color_state` is returned.

###### Clutter.ColorStateClass.init_color_transform_key

No description available.

###### Clutter.ColorStateClass.needs_mapping

No description available.

###### Clutter.ColorStateClass.required_format

No description available.

###### Clutter.ColorStateClass.to_string

No description available.

###### Clutter.ColorStateClass.update_uniforms

No description available.