DiaHandleLayer

DiaHandleLayer — Special class used by DiaCanvasView to visualize handles.

Synopsis

#define             DIA_HANDLE_LAYER                    (obj)
struct              DiaHandleLayer;
void                dia_handle_layer_update_handles     (DiaHandleLayer *layer,
                                                         DiaCanvasViewItem *item);
void                dia_handle_layer_get_pos_c          (DiaHandleLayer *layer,
                                                         DiaHandle *handle,
                                                         gint *x,
                                                         gint *y);
void                dia_handle_layer_request_redraw     (DiaHandleLayer *layer,
                                                         gint x,
                                                         gint y);
void                dia_handle_layer_request_redraw_handle
                                                        (DiaHandleLayer *layer,
                                                         DiaHandle *handle);
void                dia_handle_layer_grab_handle        (DiaHandleLayer *layer,
                                                         DiaHandle *handle);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GnomeCanvasItem
                     +----DiaHandleLayer

Description

Since handles are always displayed on top of the objects, a handle layer is drawn on top of the canvas items.

Details

DIA_HANDLE_LAYER()

#define DIA_HANDLE_LAYER(obj) (GTK_CHECK_CAST ((obj), DIA_TYPE_HANDLE_LAYER, DiaHandleLayer))


struct DiaHandleLayer

struct DiaHandleLayer;


dia_handle_layer_update_handles ()

void                dia_handle_layer_update_handles     (DiaHandleLayer *layer,
                                                         DiaCanvasViewItem *item);

Redraw handles if nessesary. The old handle positions are stored in the DiaCanvasViewItem to ensure proper redrawing.


dia_handle_layer_get_pos_c ()

void                dia_handle_layer_get_pos_c          (DiaHandleLayer *layer,
                                                         DiaHandle *handle,
                                                         gint *x,
                                                         gint *y);

Given a handle, return the position of that handle in canvas coordinates.


dia_handle_layer_request_redraw ()

void                dia_handle_layer_request_redraw     (DiaHandleLayer *layer,
                                                         gint x,
                                                         gint y);

Ask the canvas to do a redraw of the a handle. Only the handles x and y position need to be given (in canvas coordinates).

x :

Position of the handle, in canvas coordinates

dia_handle_layer_request_redraw_handle ()

void                dia_handle_layer_request_redraw_handle
                                                        (DiaHandleLayer *layer,
                                                         DiaHandle *handle);

Do a redraw for handle.


dia_handle_layer_grab_handle ()

void                dia_handle_layer_grab_handle        (DiaHandleLayer *layer,
                                                         DiaHandle *handle);

DEPRICATED

Grab a handle. The handle should be grabbed suring a button-press event, since the handle-layer will grab the widgets events.

See Also

DiaCanvasView.