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.
Instance methods
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.
Signals
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,
ClutterColorTransformKey* key
);
CoglSnippet* (* create_transform_snippet) (
ClutterColorState* color_state,
ClutterColorState* target_color_state
);
void (* update_uniforms) (
ClutterColorState* color_state,
ClutterColorState* target_color_state,
CoglPipeline* pipeline
);
void (* do_transform) (
ClutterColorState* color_state,
ClutterColorState* target_color_state,
const float* input,
float* output,
int n_samples
);
gboolean (* equals) (
ClutterColorState* color_state,
ClutterColorState* other_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: GObjectClassNo description available.
init_color_transform_key: void (* init_color_transform_key) ( ClutterColorState* color_state, ClutterColorState* target_color_state, ClutterColorTransformKey* key )No description available.
create_transform_snippet: CoglSnippet* (* create_transform_snippet) ( ClutterColorState* color_state, ClutterColorState* target_color_state )No description available.
update_uniforms: void (* update_uniforms) ( ClutterColorState* color_state, ClutterColorState* target_color_state, CoglPipeline* pipeline )No description available.
do_transform: void (* do_transform) ( ClutterColorState* color_state, ClutterColorState* target_color_state, const float* input, float* output, int n_samples )No description available.
equals: gboolean (* equals) ( ClutterColorState* color_state, ClutterColorState* other_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.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.