Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterColor |
Struct : | Color |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
alpha : Number
|
Clutter.Color | |
blue : Number
|
Clutter.Color | |
green : Number
|
Clutter.Color | |
red : Number
|
Clutter.Color |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Color
()
Create a new Clutter.Color
Create a new Clutter.Color
|
||
Create a new Clutter.Color
Create a new Clutter.Color
|
||
add
(Color b)
:
Clutter.Color
Adds a to b and saves the resulting color inside result.
Adds a to b and saves the resulting color inside result. The alpha channel of result is set as as the maximum value between the alpha channels of a and b.
|
Clutter.Color | |
copy
()
:
Clutter.Color
Makes a copy of the color structure.
Makes a copy of the color structure. The result must be freed using clutter_color_free().
|
Clutter.Color | |
darken
()
:
Clutter.Color
Darkens color by a fixed amount, and saves the changed color in result.
Darkens color by a fixed amount, and saves the changed color in result.
|
Clutter.Color | |
free
()
:
none
Frees a color structure created with clutter_color_copy().
Frees a color structure created with clutter_color_copy().
|
Clutter.Color | |
Converts a color expressed in HLS (hue, luminance and saturation) values into a ClutterColor.
|
Clutter.Color | |
from_pixel
(Number pixel)
:
none
Converts pixel from the packed representation of a four 8 bit channel color to a ClutterColor.
Converts pixel from the packed representation of a four 8 bit channel color to a ClutterColor.
|
Clutter.Color | |
Parses a string definition of a color, filling the
Parses a string definition of a color, filling the
|
Clutter.Color | |
lighten
()
:
Clutter.Color
Lightens color by a fixed amount, and saves the changed color in result.
Lightens color by a fixed amount, and saves the changed color in result.
|
Clutter.Color | |
shade
(Number factor)
:
Clutter.Color
Shades color by factor and saves the modified color into result.
Shades color by factor and saves the modified color into result.
|
Clutter.Color | |
subtract
(Color b)
:
Clutter.Color
Subtracts b from a and saves the resulting color inside result.
Subtracts b from a and saves the resulting color inside result. This function assumes that the components of a are greater than the components of b; the result is, otherwise, undefined. The alpha channel of result is set as the minimum value between the alpha channels of a and b.
|
Clutter.Color | |
to_hls
()
:
Object
|
Clutter.Color | |
to_pixel
()
:
Number
Converts color into a packed 32 bit integer, containing all the four 8 bit channels used by ClutterColor.
Converts color into a packed 32 bit integer, containing all the four 8 bit channels used by ClutterColor.
|
Clutter.Color | |
to_string
()
:
String
Returns a textual specification of color in the hexadecimal form
Returns a textual specification of color in the hexadecimal form
|
Clutter.Color |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter
Method |
Utility function for setting the source color of cr using a ClutterColor.
|
Clutter
Method |
Clutter.param_spec_color
(String name, String nick, String blurb, Color default_value, ParamFlags flags)
:
GObject.ParamSpec
Creates a GParamSpec for properties using ClutterColor.
|
Clutter
Method |
Gets the ClutterColor contained in value.
|
Clutter
Method |
Sets value to color.
|
Clutter.Actor
Signal |
The ::pick signal is emitted each time an actor is being painted in "pick mode".
|
Clutter.Box
Property |
color : Clutter.Color
The color to be used to paint the background of the ClutterBox.
|
Clutter.Box
Method |
set_color
(Color color)
:
none
Sets (or unsets) the background color for box
|
Clutter.Box
Method |
get_color
()
:
Clutter.Color
Retrieves the background color of box If the ClutterBox:color-set property is set to FALSE the returned ClutterColor is undefined
|
Clutter.Rectangle
Property |
border_color : Clutter.Color
The color of the border of the rectangle.
|
Clutter.Rectangle
Property |
color : Clutter.Color
The color of the rectangle.
|
Clutter.Rectangle
Method |
Create a new Clutter.Rectangle
|
Clutter.Rectangle
Method |
get_color
(Color color)
:
none
Retrieves the color of rectangle.
|
Clutter.Rectangle
Method |
set_color
(Color color)
:
none
Sets the color of rectangle.
|
Clutter.Rectangle
Method |
get_border_color
(Color color)
:
none
Gets the color of the border used by rectangle and places it into color.
|
Clutter.Rectangle
Method |
set_border_color
(Color color)
:
none
Sets the color of the border used by rectangle using color
|
Clutter.Stage
Property |
color : Clutter.Color
The color of the main stage.
|
Clutter.Stage
Method |
set_color
(Color color)
:
none
Sets the stage color.
|
Clutter.Stage
Method |
get_color
(Color color)
:
none
Retrieves the stage color.
|
Clutter.Text
Property |
color : Clutter.Color
The color used to render the text.
|
Clutter.Text
Property |
cursor_color : Clutter.Color
The color of the cursor.
|
Clutter.Text
Property |
selection_color : Clutter.Color
The color of the selection.
|
Clutter.Text
Method |
Create a new Clutter.Text
|
Clutter.Text
Method |
set_color
(Color color)
:
none
Sets the color of the contents of a ClutterText actor.
|
Clutter.Text
Method |
get_color
(Color color)
:
none
Retrieves the text color as set by clutter_text_set_color().
|
Clutter.Text
Method |
set_cursor_color
(Color color)
:
none
Sets the color of the cursor of a ClutterText actor.
|
Clutter.Text
Method |
get_cursor_color
(Color color)
:
none
Retrieves the color of the cursor of a ClutterText actor.
|
Clutter.Text
Method |
set_selection_color
(Color color)
:
none
Sets the color of the selection of a ClutterText actor.
|
Clutter.Text
Method |
get_selection_color
(Color color)
:
none
Retrieves the color of the selection of a ClutterText actor.
|
GtkClutter
Method |
Retrieves the base color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the background color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the dark color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the foreground color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the light color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the mid color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the text-aa color of widget for the given state and copies it into color.
|
GtkClutter
Method |
Retrieves the text color of widget for the given state and copies it into color.
|