Next: , Previous: ClutterModel, Up: Top


29 ClutterRectangle

An actor that displays a simple rectangle.

29.1 Overview

<clutter-rectangle> is a <clutter-actor> which draws a simple filled rectangle.

29.2 Usage

— Class: <clutter-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
— Function: clutter-rectangle-new   (ret <clutter-actor>)

Creates a new <clutter-actor> with a rectangular shape.

ret
a new <clutter-actor>
— Function: clutter-rectangle-new-with-color (color <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>
— Function: clutter-rectangle-get-color (self <clutter-rectangle>) (color <clutter-color>)
— Method: get-color

Retrieves the color of rectangle.

rectangle
a <clutter-rectangle>
color
return location for a <clutter-color>
— Function: clutter-rectangle-set-color (self <clutter-rectangle>) (color <clutter-color>)
— Method: set-color

Sets the color of rectangle.

rectangle
a <clutter-rectangle>
color
a <clutter-color>
— Function: clutter-rectangle-get-border-color (self <clutter-rectangle>) (color <clutter-color>)
— Method: get-border-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

— Function: clutter-rectangle-set-border-color (self <clutter-rectangle>) (color <clutter-color>)
— Method: set-border-color

Sets the color of the border used by rectangle using color

rectangle
a <clutter-rectangle>
color
the color of the border
— Function: clutter-rectangle-get-border-width (self <clutter-rectangle>)   (ret unsigned-int)
— Method: get-border-width

Gets the width (in pixels) of the border used by rectangle

rectangle
a <clutter-rectangle>
ret
the border's width

Since 0.2

— Function: clutter-rectangle-set-border-width (self <clutter-rectangle>) (width unsigned-int)
— Method: set-border-width

Sets the width (in pixel) of the border used by rectangle. A width of 0 will unset the border.

rectangle
a <clutter-rectangle>
width
the width of the border

Since 0.2