Rectangles

Rectangles

Synopsis


#include <ccc.h>


                    CcRectangle;
                    CcRectangleClass;
CcItem*             cc_rectangle_new                    (void);
void                cc_rectangle_set_position           (CcRectangle *self,
                                                         gdouble x,
                                                         gdouble y,
                                                         gdouble w,
                                                         gdouble h);
void                cc_rectangle_set_height             (CcRectangle *self,
                                                         gdouble height);
void                cc_rectangle_set_width              (CcRectangle *self,
                                                         gdouble width);
void                cc_rectangle_set_x                  (CcRectangle *self,
                                                         gdouble x);
void                cc_rectangle_set_y                  (CcRectangle *self,
                                                         gdouble y);

Object Hierarchy


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

Implemented Interfaces

CcRectangle implements CcItemView.

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);

Specify the position of a rectangle.

self : a CcRectangle
x : the horizontal position
y : the vertical position
w : the width of the rectangle
h : the eight of the rectangle

cc_rectangle_set_height ()

void                cc_rectangle_set_height             (CcRectangle *self,
                                                         gdouble height);

self :
height :

cc_rectangle_set_width ()

void                cc_rectangle_set_width              (CcRectangle *self,
                                                         gdouble width);

self :
width :

cc_rectangle_set_x ()

void                cc_rectangle_set_x                  (CcRectangle *self,
                                                         gdouble x);

self :
x :

cc_rectangle_set_y ()

void                cc_rectangle_set_y                  (CcRectangle *self,
                                                         gdouble y);

self :
y :

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