diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-04 12:02:12 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-04 12:02:12 +0000 |
commit | 134de8169993f23f2c3a733a7bf96622965e7d7d (patch) | |
tree | d9caeac0f95e658b6a2a2c409bc2098e8f72e1d4 /tikzit/src/gtk/Surface.h | |
parent | 94ff07fc9d728d97dde159e0c3e6ab80e29e0855 (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/Surface.h')
-rw-r--r-- | tikzit/src/gtk/Surface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/gtk/Surface.h b/tikzit/src/gtk/Surface.h index 449721f..b6d8d2e 100644 --- a/tikzit/src/gtk/Surface.h +++ b/tikzit/src/gtk/Surface.h @@ -33,7 +33,7 @@ typedef enum { @protocol Surface; -@protocol RenderDelegate +@protocol RenderDelegate <NSObject> - (void) renderWithContext:(id<RenderContext>)context onSurface:(id<Surface>)surface; @end @@ -47,7 +47,7 @@ typedef enum { * The surface should send a "SurfaceSizeChanged" notification * when the width or height changes. */ -@protocol Surface +@protocol Surface <NSObject> /** * The width of the surface, in surface units |