summaryrefslogtreecommitdiffstats
path: root/src/ganv-private.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-03-15 22:35:18 +0000
committerDavid Robillard <d@drobilla.net>2014-03-15 22:35:18 +0000
commit3b63d9fa3114f0292561484f299d9d45ec451c17 (patch)
treeb45de3ba8d2eded5731908cf6842b4bb6392863f /src/ganv-private.h
parentba34221e0ee4c32ced4770563638f472860e0a16 (diff)
downloadganv-3b63d9fa3114f0292561484f299d9d45ec451c17.tar.gz
ganv-3b63d9fa3114f0292561484f299d9d45ec451c17.tar.bz2
ganv-3b63d9fa3114f0292561484f299d9d45ec451c17.zip
Clean up public canvas interface.
Eliminate thin C wrappers around C++ methods (move actual implementation into C). git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5338 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ganv-private.h')
-rw-r--r--src/ganv-private.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ganv-private.h b/src/ganv-private.h
index 368e056..040e335 100644
--- a/src/ganv-private.h
+++ b/src/ganv-private.h
@@ -26,6 +26,8 @@ extern "C" {
#include "ganv/text.h"
#include "ganv/types.h"
+#define GANV_CLOSE_ENOUGH 1
+
extern guint signal_moved;
/* Box */
@@ -199,6 +201,9 @@ ganv_canvas_port_event(GanvCanvas* canvas,
GdkEvent* event);
void
+ganv_canvas_contents_changed(GanvCanvas* canvas);
+
+void
ganv_item_i2w_offset(GanvItem* item, double* px, double* py);
void
@@ -216,6 +221,24 @@ ganv_canvas_request_update(GanvCanvas* canvas);
int
ganv_canvas_emit_event(GanvCanvas* canvas, GdkEvent* event);
+void
+ganv_canvas_set_need_repick(GanvCanvas* canvas);
+
+void
+ganv_canvas_forget_item(GanvCanvas* canvas, GanvItem* item);
+
+void
+ganv_canvas_grab_focus(GanvCanvas* canvas, GanvItem* item);
+
+void
+ganv_canvas_get_zoom_offsets(GanvCanvas* canvas, int* x, int* y);
+
+int
+ganv_canvas_grab_item(GanvItem* item, guint event_mask, GdkCursor* cursor, guint32 etime);
+
+void
+ganv_canvas_ungrab_item(GanvItem* item, guint32 etime);
+
/* For use only by item type implementations. Request that the canvas
* eventually redraw the specified region, specified in canvas pixel
* coordinates. The region contains (x1, y1) but not (x2, y2).