summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/WidgetSurface.h
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-04 12:02:12 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-04 12:02:12 +0000
commit134de8169993f23f2c3a733a7bf96622965e7d7d (patch)
treed9caeac0f95e658b6a2a2c409bc2098e8f72e1d4 /tikzit/src/gtk/WidgetSurface.h
parent94ff07fc9d728d97dde159e0c3e6ab80e29e0855 (diff)
Turn InputDelegate into a protocol
We require support for the @optional keyword, so we should make use of it.
Diffstat (limited to 'tikzit/src/gtk/WidgetSurface.h')
-rw-r--r--tikzit/src/gtk/WidgetSurface.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tikzit/src/gtk/WidgetSurface.h b/tikzit/src/gtk/WidgetSurface.h
index 32c8222..02f2cbf 100644
--- a/tikzit/src/gtk/WidgetSurface.h
+++ b/tikzit/src/gtk/WidgetSurface.h
@@ -17,6 +17,7 @@
#import "TZFoundation.h"
#import <gtk/gtk.h>
+#import <InputDelegate.h>
#import <Surface.h>
/**
@@ -26,7 +27,7 @@
GtkWidget *widget;
Transformer *transformer;
id <RenderDelegate> renderDelegate;
- id inputDelegate;
+ id <InputDelegate> inputDelegate;
BOOL keepCentered;
BOOL grabsFocusOnClick;
CGFloat defaultScale;
@@ -36,8 +37,8 @@
- (id) initWithWidget:(GtkWidget*)widget;
- (GtkWidget*) widget;
-- (id) inputDelegate;
-- (void) setInputDelegate:(id)delegate;
+- (id<InputDelegate>) inputDelegate;
+- (void) setInputDelegate:(id<InputDelegate>)delegate;
- (BOOL) keepCentered;
- (void) setKeepCentered:(BOOL)centered;