Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterColor |
Struct : | Color |
Properties | Defined By | |
---|---|---|
alpha : guint8
|
Clutter.Color | |
blue : guint8
|
Clutter.Color | |
green : guint8
|
Clutter.Color | |
red : guint8
|
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.
Converts a color expressed in HLS (hue, luminance and saturation)
values into a ClutterColor.
|
Clutter.Color | |
from_pixel
(guint32 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
channels of color.
Parses a string definition of a color, filling the
channels of color. If alpha is not specified it will be set full opaque. The color is not allocated. The color may be defined by any of the formats understood by pango_color_from_string(); these include literal color names, like hexadecimal specifications like
|
Clutter.Color | |
|
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
(gdouble 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
()
:
guint32
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
hex digits representing the red, green, blue and alpha components respectively.
Returns a textual specification of color in the hexadecimal form
hex digits representing the red, green, blue and alpha components respectively.
|
Clutter.Color |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Champlain.Label
Property |
color : Clutter.Color
|
Champlain.Label
Property |
text_color : Clutter.Color
|
Champlain.Label
Method |
new Champlain.Label.with_text
(String text, String font, Color text_color, Color label_color)
:
Clutter.Actor
Create a new Champlain.Label
|
Champlain.Label
Method |
get_color
()
:
Clutter.Color
|
Champlain.Label
Method |
get_text_color
()
:
Clutter.Color
|
Champlain.Label
Method |
set_color
(Color color)
:
none
|
Champlain.Label
Method |
set_text_color
(Color color)
:
none
|
Champlain.Marker
Method |
Champlain.Marker.get_selection_color
()
:
Clutter.Color
|
Champlain.Marker
Method |
Champlain.Marker.get_selection_text_color
()
:
Clutter.Color
|
Champlain.Marker
Method |
Champlain.Marker.set_selection_color
(Color color)
:
none
|
Champlain.Marker
Method |
Champlain.Marker.set_selection_text_color
(Color color)
:
none
|
Champlain.PathLayer
Property |
fill_color : Clutter.Color
|
Champlain.PathLayer
Property |
stroke_color : Clutter.Color
|
Champlain.PathLayer
Method |
get_fill_color
()
:
Clutter.Color
|
Champlain.PathLayer
Method |
get_stroke_color
()
:
Clutter.Color
|
Champlain.PathLayer
Method |
set_fill_color
(Color color)
:
none
|
Champlain.PathLayer
Method |
set_stroke_color
(Color color)
:
none
|
Champlain.Point
Property |
color : Clutter.Color
|
Champlain.Point
Method |
Create a new Champlain.Point
|
Champlain.Point
Method |
get_color
()
:
Clutter.Color
|
Champlain.Point
Method |
set_color
(Color color)
:
none
|
Clutter
Method |
Utility function for setting the source color of cr using
a ClutterColor. |
Clutter
Method |
|
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 |
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.Box
Method |
set_color
(Color color)
:
none
Sets (or unsets) the background color for box
|
Clutter.ColorizeEffect
Property |
tint : Clutter.Color
The tint to apply to the actor
|
Clutter.ColorizeEffect
Method |
Create a new Clutter.ColorizeEffect
|
Clutter.ColorizeEffect
Method |
get_tint
()
:
Clutter.Color
Retrieves the tint used by effect
|
Clutter.ColorizeEffect
Method |
set_tint
(Color tint)
:
none
Sets the tint to be used when colorizing
|
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_border_color
()
:
Clutter.Color
Gets the color of the border used by rectangle and places
it into color. |
Clutter.Rectangle
Method |
get_color
()
:
Clutter.Color
Retrieves the color of rectangle.
|
Clutter.Rectangle
Method |
set_border_color
(Color color)
:
none
Sets the color of the border used by rectangle using color
|
Clutter.Rectangle
Method |
set_color
(Color color)
:
none
Sets the color of rectangle.
|
Clutter.Stage
Property |
color : Clutter.Color
The color of the main stage.
|
Clutter.Stage
Method |
get_color
()
:
Clutter.Color
Retrieves the stage color.
|
Clutter.Stage
Method |
set_color
(Color color)
:
none
Sets 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 |
get_color
()
:
Clutter.Color
Retrieves the text color as set by clutter_text_set_color().
|
Clutter.Text
Method |
get_cursor_color
(Color color)
:
none
Retrieves the color of the cursor of a ClutterText actor.
|
Clutter.Text
Method |
get_selection_color
()
:
Clutter.Color
Retrieves the color of the selection of a ClutterText actor.
|
Clutter.Text
Method |
set_color
(Color color)
:
none
Sets the color of the contents of a ClutterText actor.
|
Clutter.Text
Method |
set_cursor_color
(Color color)
:
none
Sets 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.
|