DiaCanvasEditable

DiaCanvasEditable — Interface for editable classes.

Synopsis




                    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);

Object Hierarchy


  GInterface
   +----DiaCanvasEditable

Prerequisites

DiaCanvasEditable requires DiaCanvasItem.

Known Implementations

DiaCanvasEditable is implemented by DiaCanvasText.

Signals


  "editing-done"                                   : Run Last
  "start-editing"                                  : Run Last
  "text-changed"                                   : Run Last

Description

CanvasItem's contain editable text should implement this interface. The text can then be edited in the canvas view directly.

Details

DiaCanvasEditable

typedef struct _DiaCanvasEditable DiaCanvasEditable;

DiaCanvasItems that should support editable text should implement this interface.


dia_canvas_editable_start_editing ()

void                dia_canvas_editable_start_editing   (DiaCanvasEditable *editable,
                                                         DiaShapeText *text_shape);

editable :
text_shape :

dia_canvas_editable_editing_done ()

void                dia_canvas_editable_editing_done    (DiaCanvasEditable *editable,
                                                         DiaShapeText *text_shape,
                                                         const gchar *new_text);

editable :
text_shape :
new_text :

dia_canvas_editable_text_changed ()

void                dia_canvas_editable_text_changed    (DiaCanvasEditable *editable,
                                                         DiaShapeText *text_shape,
                                                         const gchar *new_text);

editable :
text_shape :
new_text :

Signal Details

The "editing-done" signal

void                user_function                      (DiaCanvasEditable *diacanvaseditable,
                                                        DiaShapeText      *arg1,
                                                        gchar             *arg2,
                                                        gpointer           user_data)              : Run Last

diacanvaseditable : the object which received the signal.
arg1 :
arg2 :
user_data : user data set when the signal handler was connected.

The "start-editing" signal

void                user_function                      (DiaCanvasEditable *diacanvaseditable,
                                                        DiaShapeText      *arg1,
                                                        gpointer           user_data)              : Run Last

diacanvaseditable : the object which received the signal.
arg1 :
user_data : user data set when the signal handler was connected.

The "text-changed" signal

void                user_function                      (DiaCanvasEditable *diacanvaseditable,
                                                        DiaShapeText      *arg1,
                                                        gchar             *arg2,
                                                        gpointer           user_data)              : Run Last

diacanvaseditable : the object which received the signal.
arg1 :
arg2 :
user_data : user data set when the signal handler was connected.

See Also

DiaCanvasItem, DiaCanvasView