![]() |
![]() |
![]() |
Clutter 0.4 Reference Manual | ![]() |
---|---|---|---|---|
ClutterActor* clutter_rectangle_new (void); ClutterActor* clutter_rectangle_new_with_color (const ClutterColor *color); void clutter_rectangle_get_color (ClutterRectangle *rectangle, ClutterColor *color); void clutter_rectangle_set_color (ClutterRectangle *rectangle, const ClutterColor *color); void clutter_rectangle_get_border_color (ClutterRectangle *rectangle, ClutterColor *color); void clutter_rectangle_set_border_color (ClutterRectangle *rectangle, const ClutterColor *color); guint clutter_rectangle_get_border_width (ClutterRectangle *rectangle); void clutter_rectangle_set_border_width (ClutterRectangle *rectangle, guint width);
ClutterActor* clutter_rectangle_new (void);
Creates a new ClutterActor with a rectangular shape.
Returns : | a new ClutterActor |
ClutterActor* clutter_rectangle_new_with_color (const ClutterColor *color);
Creates a new ClutterActor with a rectangular shape
and with color
.
color : |
a ClutterColor |
Returns : | a new ClutterActor |
void clutter_rectangle_get_color (ClutterRectangle *rectangle, ClutterColor *color);
Retrieves the color of rectangle
.
rectangle : |
a ClutterRectangle |
color : |
return location for a ClutterColor |
void clutter_rectangle_set_color (ClutterRectangle *rectangle, const ClutterColor *color);
Sets the color of rectangle
.
rectangle : |
a ClutterRectangle |
color : |
a ClutterColor |
void clutter_rectangle_get_border_color (ClutterRectangle *rectangle, ClutterColor *color);
Gets the color of the border used by rectangle
and places
it into color
.
rectangle : |
a ClutterRectangle |
color : |
return location for a ClutterColor |
Since 0.2
void clutter_rectangle_set_border_color (ClutterRectangle *rectangle, const ClutterColor *color);
Sets the color of the border used by rectangle
using color
rectangle : |
a ClutterRectangle |
color : |
the color of the border |
guint clutter_rectangle_get_border_width (ClutterRectangle *rectangle);
Gets the width (in pixels) of the border used by rectangle
rectangle : |
a ClutterRectangle |
Returns : | the border's width |
Since 0.2