Clutter.Rectangle

g Atk.ImplementorIface Atk.ImplementorIface Clutter.Actor Clutter.Actor Atk.ImplementorIface->Clutter.Actor Clutter.Rectangle Clutter.Rectangle Clutter.Actor->Clutter.Rectangle Clutter.Animatable Clutter.Animatable Clutter.Animatable->Clutter.Actor Clutter.Container Clutter.Container Clutter.Container->Clutter.Actor Clutter.Scriptable Clutter.Scriptable Clutter.Scriptable->Clutter.Actor GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface GObject.GInterface->Clutter.Animatable GObject.GInterface->Clutter.Container GObject.GInterface->Clutter.Scriptable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Clutter.Actor GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned

Subclasses:

None

Methods

Inherited:

Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_with_color (color)

get_border_color ()

get_border_width ()

get_color ()

set_border_color (color)

set_border_width (width)

set_color (color)

Virtual Methods

Inherited:

Clutter.Actor (35), GObject.Object (7), Clutter.Animatable (5), Clutter.Container (13), Clutter.Scriptable (4)

Properties

Inherited:

Clutter.Actor (82)

Name

Type

Flags

Short Description

border-color

Clutter.Color

r/w

The color of the border of the rectangle

border-width

int

r/w

The width of the border of the rectangle

color

Clutter.Color

r/w

The color of the rectangle

has-border

bool

r/w

Whether the rectangle should have a border

Signals

Inherited:

Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)

Fields

Inherited:

Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)

Name

Type

Access

Description

parent

Clutter.Actor

r

Class Details

class Clutter.Rectangle(**kwargs)
Bases:

Clutter.Actor

Abstract:

No

Structure:

Clutter.RectangleClass

The Clutter.Rectangle structure contains only private data and should be accessed using the provided API

New in version 0.2.

classmethod new()
Returns:

a new Clutter.Rectangle

Return type:

Clutter.Actor

Creates a new Clutter.Actor with a rectangular shape.

Deprecated since version 1.10: Use Clutter.Actor.new() instead

classmethod new_with_color(color)
Parameters:

color (Clutter.Color) – a Clutter.Color

Returns:

a new Clutter.Rectangle

Return type:

Clutter.Actor

Creates a new Clutter.Actor with a rectangular shape and of the given color.

Deprecated since version 1.10: Use Clutter.Actor.new() and Clutter.Actor.set_background_color() instead

get_border_color()
Returns:

return location for a Clutter.Color

Return type:

color: Clutter.Color

Gets the color of the border used by self and places it into color.

New in version 0.2.

Deprecated since version 1.10: Use Clutter.Actor and a Clutter.Canvas to draw the border with Cairo

get_border_width()
Returns:

the border’s width

Return type:

int

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

New in version 0.2.

Deprecated since version 1.10: Use Clutter.Actor and a Clutter.Canvas content to draw the border using Cairo

get_color()
Returns:

return location for a Clutter.Color

Return type:

color: Clutter.Color

Retrieves the color of self.

Deprecated since version 1.10: Use Clutter.Actor and Clutter.Actor.get_background_color() instead

set_border_color(color)
Parameters:

color (Clutter.Color) – the color of the border

Sets the color of the border used by self using color

Deprecated since version 1.10: Use Clutter.Actor and a Clutter.Canvas to draw the border with Cairo

set_border_width(width)
Parameters:

width (int) – the width of the border

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

New in version 0.2.

Deprecated since version 1.10: Use Clutter.Actor and a Clutter.Canvas content to draw the border using Cairo

set_color(color)
Parameters:

color (Clutter.Color) – a Clutter.Color

Sets the color of self.

Deprecated since version 1.10: Use Clutter.Actor and Clutter.Actor.set_background_color() instead

Property Details

Clutter.Rectangle.props.border_color
Name:

border-color

Type:

Clutter.Color

Default Value:

<Color structure at 0x000000000000 (ClutterColor at 0x0000000)>

Flags:

READABLE, WRITABLE

The color of the border of the rectangle.

New in version 0.2.

Clutter.Rectangle.props.border_width
Name:

border-width

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The width of the border of the rectangle, in pixels.

New in version 0.2.

Clutter.Rectangle.props.color
Name:

color

Type:

Clutter.Color

Default Value:

<Color structure at 0x000000000000 (ClutterColor at 0x0000000)>

Flags:

READABLE, WRITABLE

The color of the rectangle.

Clutter.Rectangle.props.has_border
Name:

has-border

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the Clutter.Rectangle should be displayed with a border.

New in version 0.2.