![]() |
![]() |
![]() |
libccc Reference Manual | ![]() |
---|---|---|---|---|
#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);
GObject +----GInitiallyUnowned +----CcItem +----CcShape +----CcRectangle +----CcRoundedRectangle
"position-h" gdouble : Read / Write "position-w" gdouble : Read / Write "position-x" gdouble : Read / Write "position-y" gdouble : Read / Write
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 |
void cc_rectangle_set_height (CcRectangle *self, gdouble height);
self : |
|
height : |
void cc_rectangle_set_width (CcRectangle *self, gdouble width);
self : |
|
width : |
position-h
" property"position-h" gdouble : Read / Write
The height of the rectangle.
Default value: 0
position-w
" property"position-w" gdouble : Read / Write
The width of the rectangle.
Default value: 0
position-x
" property"position-x" gdouble : Read / Write
The x position of the rectangle.
Default value: 0