DiaCanvasText

Name

DiaCanvasText -- Creates an editable text element on the canvas.

Synopsis



#define     DIA_CANVAS_TEXT                 (obj)
struct      DiaCanvasText;

Object Hierarchy


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

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

Signal Prototypes


"text-changed"
            void        user_function      (DiaCanvasText *diacanvastext,
                                            gchar *arg1,
                                            gpointer user_data);

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 :


struct DiaCanvasText

struct DiaCanvasText;

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)

Signals

The "text-changed" signal

void        user_function                  (DiaCanvasText *diacanvastext,
                                            gchar *arg1,
                                            gpointer user_data);

This signal is emited every time the text changes.

diacanvastext :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.