DiaCanvasElement

DiaCanvasElement — Abstract class for element like objects.

Synopsis




#define     DIA_CANVAS_ELEMENT              (obj)
            DiaCanvasElement;

Object Hierarchy


  GObject
   +----DiaCanvasItem
         +----DiaCanvasElement
               +----DiaCanvasBox
               +----DiaCanvasImage

Properties


  "height"               gdouble               : Read / Write
  "min-height"           gdouble               : Read / Write
  "min-width"            gdouble               : Read / Write
  "resizable"            gboolean              : 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 5. A box element

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 :

DiaCanvasElement

typedef struct _DiaCanvasElement DiaCanvasElement;

Property Details

The "height" property

  "height"               gdouble               : Read / Write

Height of the element.

Allowed values: >= 0

Default value: 1


The "min-height" property

  "min-height"           gdouble               : Read / Write

Minimal height of the element.

Allowed values: >= 0

Default value: 1


The "min-width" property

  "min-width"            gdouble               : Read / Write

Minimal width of the element.

Allowed values: >= 0

Default value: 1


The "resizable" property

  "resizable"            gboolean              : Read / Write

Whether the canvas item is resizable.

Default value: TRUE


The "width" property

  "width"                gdouble               : Read / Write

Width of the element.

Allowed values: >= 0

Default value: 1

See Also

DiaCanvasBox, DiaCanvasImage, DiaCanvasText.