summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/Surface.h
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2012-06-08 19:59:07 +0100
committerAlex Merry <dev@randomguy3.me.uk>2012-06-08 19:59:07 +0100
commitee3648293706ce512277532951fa015ecfc0ee3e (patch)
treec58ae3a73fa00bf91d7ea11d19c84ebf53c0f502 /tikzit/src/gtk/Surface.h
parent96bb49b438646b54f1a667a66a9bb1b2c27d7b4f (diff)
Set the cursor when dragging would resize bounding box
This makes it obvious to users when clicking will resize the bounding box, rather than creating a new one.
Diffstat (limited to 'tikzit/src/gtk/Surface.h')
-rw-r--r--tikzit/src/gtk/Surface.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tikzit/src/gtk/Surface.h b/tikzit/src/gtk/Surface.h
index d2a0dba..449721f 100644
--- a/tikzit/src/gtk/Surface.h
+++ b/tikzit/src/gtk/Surface.h
@@ -19,6 +19,18 @@
#import "RenderContext.h"
#import "Transformer.h"
+typedef enum {
+ NormalCursor,
+ ResizeRightCursor,
+ ResizeBottomRightCursor,
+ ResizeBottomCursor,
+ ResizeBottomLeftCursor,
+ ResizeLeftCursor,
+ ResizeTopLeftCursor,
+ ResizeTopCursor,
+ ResizeTopRightCursor
+} Cursor;
+
@protocol Surface;
@protocol RenderDelegate
@@ -85,6 +97,8 @@
- (void) zoomInAboutPoint:(NSPoint)p;
- (void) zoomOutAboutPoint:(NSPoint)p;
- (void) zoomResetAboutPoint:(NSPoint)p;
+
+- (void) setCursor:(Cursor)c;
@end
// vim:ft=objc:ts=8:et:sts=4:sw=4