![]() | ![]() | ![]() | DiaCanvas2 Reference Manual | ![]() |
---|
DiaCanvasText — Creates an editable text element on the canvas.
#define DIA_CANVAS_TEXT (obj) struct DiaCanvasText;
"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
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.
#define DIA_CANVAS_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_CANVAS_TEXT, DiaCanvasText))
obj : |
"alignment" (PangoAlignment : Read / Write) | |
"color" (gulong : Read / Write) | Color of the text in RGBA. |
"cursor" (gint : Read / Write) | Position of the cursor in the text. |
"editable" (gboolean : Read / Write) | Text is editable. |
"font" (PangoFontDescription : Write) | |
"height" (gdouble : Read / Write) | Height of the text. |
"layout" (PangoLayout : Read) | Layout of the text. |
"markup" (gboolean : Read / Write) | Text has markup symbols. |
"multiline" (gboolean : Read / Write) | Multiline text. |
"text" (gchararray : Read / Write) | Text to be displayed. |
"width" (gdouble : Read / Write) | Width of the text. |
"wrap-word" (gboolean : Read / Write) |
<< DiaCanvasImage | Visualization and Interaction >> |