![]() |
![]() |
![]() |
DiaCanvas2 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Signals |
DiaCanvasEditable; void dia_canvas_editable_start_editing (DiaCanvasEditable *editable
,DiaShapeText *text_shape
); void dia_canvas_editable_editing_done (DiaCanvasEditable *editable
,DiaShapeText *text_shape
,const gchar *new_text
); void dia_canvas_editable_text_changed (DiaCanvasEditable *editable
,DiaShapeText *text_shape
,const gchar *new_text
);
CanvasItem's contain editable text should implement this interface. The text can then be edited in the canvas view directly.
typedef struct _DiaCanvasEditable DiaCanvasEditable;
DiaCanvasItems that should support editable text should implement this interface.
void dia_canvas_editable_start_editing (DiaCanvasEditable *editable
,DiaShapeText *text_shape
);
void dia_canvas_editable_editing_done (DiaCanvasEditable *editable
,DiaShapeText *text_shape
,const gchar *new_text
);
void dia_canvas_editable_text_changed (DiaCanvasEditable *editable
,DiaShapeText *text_shape
,const gchar *new_text
);
"editing-done"
signalvoid user_function (DiaCanvasEditable *diacanvaseditable,
DiaShapeText *arg1,
gchar *arg2,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"start-editing"
signalvoid user_function (DiaCanvasEditable *diacanvaseditable,
DiaShapeText *arg1,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"text-changed"
signalvoid user_function (DiaCanvasEditable *diacanvaseditable,
DiaShapeText *arg1,
gchar *arg2,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |