From ee3648293706ce512277532951fa015ecfc0ee3e Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 8 Jun 2012 19:59:07 +0100 Subject: 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. --- tikzit/src/gtk/Surface.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tikzit/src/gtk/Surface.h') 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 -- cgit v1.2.3