Rectangles

Rectangles —

Synopsis




            CcRectangle;
            CcRectangleClass;
CcItem*     cc_rectangle_new                (void);
void        cc_rectangle_set_position       (CcRectangle *self,
                                             gdouble x,
                                             gdouble y,
                                             gdouble w,
                                             gdouble h);

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----CcItem
               +----CcShape
                     +----CcRectangle

Implemented Interfaces

CcRectangle implements

Properties


  "position-h"           gdouble               : Read / Write
  "position-w"           gdouble               : Read / Write
  "position-x"           gdouble               : Read / Write
  "position-y"           gdouble               : Read / Write

Description

Details

CcRectangle

typedef struct _CcRectangle CcRectangle;


CcRectangleClass

typedef struct {
	CcShapeClass base_class;
} CcRectangleClass;


cc_rectangle_new ()

CcItem*     cc_rectangle_new                (void);

Returns :

cc_rectangle_set_position ()

void        cc_rectangle_set_position       (CcRectangle *self,
                                             gdouble x,
                                             gdouble y,
                                             gdouble w,
                                             gdouble h);

self :
x :
y :
w :
h :

Property Details

The "position-h" property

  "position-h"           gdouble               : Read / Write

The height of the rectangle.

Default value: 0


The "position-w" property

  "position-w"           gdouble               : Read / Write

The width of the rectangle.

Default value: 0


The "position-x" property

  "position-x"           gdouble               : Read / Write

The x position of the rectangle.

Default value: 0


The "position-y" property

  "position-y"           gdouble               : Read / Write

The y position of the rectangle.

Default value: 0