Clutter.Rectangle¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The color of the border of the rectangle |
||
r/w |
The width of the border of the rectangle |
||
r/w |
The color of the rectangle |
||
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 |
r |
Class Details¶
- class Clutter.Rectangle(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.Rectangle
structure contains only private data and should be accessed using the provided APINew in version 0.2.
- classmethod new()¶
- Returns:
a new
Clutter.Rectangle
- Return type:
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
) – aClutter.Color
- Returns:
a new
Clutter.Rectangle
- Return type:
Creates a new
Clutter.Actor
with a rectangular shape and of the given color.Deprecated since version 1.10: Use
Clutter.Actor.new
() andClutter.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 aClutter.Canvas
to draw the border with Cairo
- get_border_width()¶
- Returns:
the border’s width
- Return type:
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 aClutter.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
andClutter.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 aClutter.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 aClutter.Canvas
content to draw the border using Cairo
- set_color(color)¶
- Parameters:
color (
Clutter.Color
) – aClutter.Color
Sets the color of self.
Deprecated since version 1.10: Use
Clutter.Actor
andClutter.Actor.set_background_color
() instead
Property Details¶
- Clutter.Rectangle.props.border_color¶
- Name:
border-color
- Type:
- Default Value:
<Color structure at 0x000000000000 (ClutterColor at 0x0000000)>
- Flags:
The color of the border of the rectangle.
New in version 0.2.
- Clutter.Rectangle.props.border_width¶
-
The width of the border of the rectangle, in pixels.
New in version 0.2.
- Clutter.Rectangle.props.color¶
- Name:
color
- Type:
- Default Value:
<Color structure at 0x000000000000 (ClutterColor at 0x0000000)>
- Flags:
The color of the rectangle.