DiaCanvasText

DiaCanvasText — Creates an editable text element on the canvas.

Synopsis




#define     DIA_CANVAS_TEXT                 (obj)
            DiaCanvasText;

Object Hierarchy


  GObject
   +----DiaCanvasItem
         +----DiaCanvasText

Implemented Interfaces

DiaCanvasText implements DiaCanvasEditable.

Properties


  "alignment"            PangoAlignment        : Read / Write
  "color"                gulong                : Read / Write
  "cursor"               gint                  : Read / Write
  "editable"             gboolean              : Read / Write
  "font"                 PangoFontDescription  : Write
  "height"               gdouble               : Read / Write
  "layout"               PangoLayout           : Read
  "markup"               gboolean              : Read / Write
  "multiline"            gboolean              : Read / Write
  "text"                 gchararray            : Read / Write
  "width"                gdouble               : Read / Write
  "wrap-word"            gboolean              : Read / Write

Description

DiaCanvasText is a nice example of a composite object. You can use this class in your custom made canvas items to display some text. DiaCanvasText has some handy features like the ability to edit the text and a variable height and width.

Details

DIA_CANVAS_TEXT()

#define DIA_CANVAS_TEXT(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_TEXT, DiaCanvasText))

obj :

DiaCanvasText

typedef struct _DiaCanvasText DiaCanvasText;

Property Details

The "alignment" property

  "alignment"            PangoAlignment        : Read / Write

Default value: PANGO_ALIGN_LEFT


The "color" property

  "color"                gulong                : Read / Write

Color of the text in RGBA.


The "cursor" property

  "cursor"               gint                  : Read / Write

Position of the cursor in the text.

Allowed values: >= -1

Default value: 1


The "editable" property

  "editable"             gboolean              : Read / Write

Text is editable.

Default value: TRUE


The "font" property

  "font"                 PangoFontDescription  : Write


The "height" property

  "height"               gdouble               : Read / Write

Height of the text.

Allowed values: >= 0

Default value: 1


The "layout" property

  "layout"               PangoLayout           : Read

Layout of the text.


The "markup" property

  "markup"               gboolean              : Read / Write

Text has markup symbols.

Default value: FALSE


The "multiline" property

  "multiline"            gboolean              : Read / Write

Multiline text.

Default value: TRUE


The "text" property

  "text"                 gchararray            : Read / Write

Text to be displayed.

Default value: NULL


The "width" property

  "width"                gdouble               : Read / Write

Width of the text.

Allowed values: >= 0

Default value: 1


The "wrap-word" property

  "wrap-word"            gboolean              : Read / Write

Default value: TRUE