DiaCanvasElement

DiaCanvasElement — Abstract class for element like objects.

Synopsis




#define     DIA_CANVAS_ELEMENT              (obj)
struct      DiaCanvasElement;
void        dia_canvas_element_align_handles
                                            (DiaCanvasElement *element);

Object Hierarchy


  GObject
   +----DiaCanvasItem
         +----DiaCanvasElement

Properties


  "height"               gdouble              : Read / Write
  "min-height"           gdouble              : Read / Write
  "min-width"            gdouble              : Read / Write
  "width"                gdouble              : Read / Write

Description

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.

Figure 3. A box element

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.

Details

DIA_CANVAS_ELEMENT()

#define DIA_CANVAS_ELEMENT(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_ELEMENT, DiaCanvasElement))

obj :

struct DiaCanvasElement

struct DiaCanvasElement;


dia_canvas_element_align_handles ()

void        dia_canvas_element_align_handles
                                            (DiaCanvasElement *element);

element :

Properties

"height" (gdouble : Read / Write)

"min-height" (gdouble : Read / Write)

"min-width" (gdouble : Read / Write)

"width" (gdouble : Read / Write)

See Also

DiaCanvasBox, DiaCanvasImage, DiaCanvasText.