Phoc.ColorRect
Description: Reference for Phoc.ColorRect

### Class

# PhocColorRect

#### Description [src]

    class Phoc.ColorRect : GObject.Object
      implements Phoc.Bling {
      /* No available fields */
    }

A colored rectangle to be drawn by the compositor.

When created the rectangle is initially unmapped. For it to be drawn it needs to be mapped and attached to the render tree by e.g. adding it as a `PhocBling` to a `PhocView`.

#### Hierarchy

#### Ancestors

- GObject

#### Descendants

- PhocFocusFrame

#### Implements

- PhocBling

#### Constructors

###### phoc_color_rect_new

No description available.

#### Instance methods

###### phoc_color_rect_get_alpha

Get the rectangle’s opacity.

###### phoc_color_rect_get_box

Get the rectangles current coordinates and size as box.

###### phoc_color_rect_get_color

Get the rectangle’s color.

###### phoc_color_rect_set_alpha

Set the rectangle’s opacity.

###### phoc_color_rect_set_box

Sets the rectangles coordinates and size as box.

###### phoc_color_rect_set_color

Set the rectangle’s color.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

##### Methods inherited from PhocBling (6)

###### phoc_bling_damage_box

A utility method to damage the entire bounding box region of a PhocBling.

###### phoc_bling_get_box

No description available.

###### phoc_bling_is_mapped

No description available.

###### phoc_bling_map

No description available.

###### phoc_bling_render

No description available.

###### phoc_bling_unmap

No description available.

#### Properties

###### Phoc.ColorRect:alpha

The rectangle’s alpha channel.

###### Phoc.ColorRect:box

The rectangle’s box in layout coordinates.

###### Phoc.ColorRect:color

The rectangle’s color.

###### Phoc.ColorRect:height

No description available.

###### Phoc.ColorRect:width

No description available.

###### Phoc.ColorRect:x

No description available.

###### Phoc.ColorRect:y

No description available.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct PhocColorRectClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  The parent class.