Next: ClutterScore, Previous: ClutterModel, Up: Top
An actor that displays a simple rectangle.
<clutter-rectangle> is a <clutter-actor> which draws a simple
filled rectangle.
Derives from
<clutter-actor>.This class defines the following slots:
color- The color of the rectangle
border-color- The color of the border of the rectangle
border-width- The width of the border of the rectangle
has-border- Whether the rectangle should have a border
<clutter-actor>)Creates a new
<clutter-actor>with a rectangular shape.
- ret
- a new
<clutter-actor>
<clutter-color>) (ret <clutter-actor>)Creates a new
<clutter-actor>with a rectangular shape and of the given color.
- color
- a
<clutter-color>- ret
- a new
<clutter-actor>
<clutter-rectangle>) (color <clutter-color>)Retrieves the color of rectangle.
- rectangle
- a
<clutter-rectangle>- color
- return location for a
<clutter-color>
<clutter-rectangle>) (color <clutter-color>)Sets the color of rectangle.
- rectangle
- a
<clutter-rectangle>- color
- a
<clutter-color>
<clutter-rectangle>) (color <clutter-color>)Gets the color of the border used by rectangle and places it into color.
- rectangle
- a
<clutter-rectangle>- color
- return location for a
<clutter-color>Since 0.2
<clutter-rectangle>) (color <clutter-color>)Sets the color of the border used by rectangle using color
- rectangle
- a
<clutter-rectangle>- color
- the color of the border