| DiaCanvas2 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
DiaHandleLayerDiaHandleLayer — Special class used by DiaCanvasView to visualize handles. |
#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);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GnomeCanvasItem
+----DiaHandleLayer
Since handles are always displayed on top of the objects, a handle layer is drawn on top of the canvas items.
#define DIA_HANDLE_LAYER(obj) (GTK_CHECK_CAST ((obj), DIA_TYPE_HANDLE_LAYER, DiaHandleLayer))
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.
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.
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).
|
Position of the handle, in canvas coordinates |
void dia_handle_layer_request_redraw_handle (DiaHandleLayer *layer,DiaHandle *handle);
Do a redraw for 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.