clutter.Rectangle

clutter.Rectangle — An actor that displays simple rectangles

Synopsis

class clutter.Rectangle(clutter.Actor):
    clutter.Rectangle(color=None)
def get_color()
def set_color(color)
def get_border_color()
def set_border_color(color)
def get_border_width()
def set_border_width(width)

Ancestry

gobject.GObject
 +--gobject.GInitiallyUnowned
     +--clutter.Actor
         +--clutter.Rectangle
  

Properties

clutter.Actor Properties

"color"Read-WriteThe color of the rectangle.
"border-color"Read-WriteThe color of the border
"border-width"Read-WriteWidth of the border of the rectangle (in pixels). Allowed values: >= 0. Default value: 0.
"has-border"ReadWhether the rectangle should have a border or not. Default value: False.

Signal Prototypes

clutter.Actor Signal Prototypes

Description

clutter.Rectangle is a simple actor which draws rectangles.

Constructor

    clutter.Rectangle(color=None)
color :a clutter.Color or None
Returns :a new clutter.Rectangle.

Creates a new clutter.Rectangle object.

Methods

clutter.Rectangle.get_color

    def get_color()
Returns : the rectangle color.

The get_color() method retrieves the clutter.Color used by the clutter.Rectangle

clutter.Rectangle.get_border_color

    def get_border_color()
Returns : the border color.

The get_border_color() method retrieves the clutter.Color used by the clutter.Rectangle to draw its border.

clutter.Rectangle.get_border_width

    def get_border_width()
Returns : the border width in pixels.

The get_border_width() method retrieves the width of the rectangle's border.

clutter.Rectangle.set_color

    def set_color(color)
color :the clutter.Color to be used to draw the rectangle

The set_color() method controls the color of the rectangle.

clutter.Rectangle.set_border_color

    def set_border_color(color)
color :the clutter.Color to be used to draw the border of the rectangle

The set_border_color() method controls the color of the border of the rectangle.

clutter.Rectangle.set_border_width

    def set_border_width(width)
width :the width of the border of the rectangle

The set_border_width() method controls the width of the border of the rectangle.

Signals