![]() |
![]() |
![]() |
DiaCanvas2 Reference Manual | ![]() |
---|---|---|---|---|
#define DIA_CANVAS_ELEMENT (obj) DiaCanvasElement; void dia_canvas_element_align_handles (DiaCanvasElement *element);
GObject +----DiaCanvasItem +----DiaCanvasElement +----DiaCanvasBox +----DiaCanvasImage
"height" gdouble : Read / Write "min-height" gdouble : Read / Write "min-width" gdouble : Read / Write "width" gdouble : Read / Write
An element is basically everything that is not a line. An element has eight handles around itself which can be used to resize/rotate/shear the object.
A user can easely rotate or shear an element by holding the Control key (CTRL) while dragging a handle.
An element has its origin (0, 0) in the upper left corner of the object. You can change the width and height of the element.
#define DIA_CANVAS_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_ELEMENT, DiaCanvasElement))
obj : |
void dia_canvas_element_align_handles (DiaCanvasElement *element);
element : |
height
" property"height" gdouble : Read / Write
Height of the element.
Allowed values: >= 0
Default value: 1
min-height
" property"min-height" gdouble : Read / Write
Minimal height of the element.
Allowed values: >= 0
Default value: 1
min-width
" property"min-width" gdouble : Read / Write
Minimal width of the element.
Allowed values: >= 0
Default value: 1