diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-12 12:43:18 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-12 12:43:18 +0000 |
commit | ad869704e6dd52315bff174070e570727e7e8d98 (patch) | |
tree | 7cf7c5f7505dcea20fa6d5b80e70c8685d7f2a27 /tikzit/src/gtk/WidgetSurface.h | |
parent | 24c26ce52aa95e4dddfaceb23025a0438ed34350 (diff) |
Allow the graph widget to grab focus
Diffstat (limited to 'tikzit/src/gtk/WidgetSurface.h')
-rw-r--r-- | tikzit/src/gtk/WidgetSurface.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tikzit/src/gtk/WidgetSurface.h b/tikzit/src/gtk/WidgetSurface.h index 02f2cbf..667749f 100644 --- a/tikzit/src/gtk/WidgetSurface.h +++ b/tikzit/src/gtk/WidgetSurface.h @@ -29,26 +29,21 @@ id <RenderDelegate> renderDelegate; id <InputDelegate> inputDelegate; BOOL keepCentered; - BOOL grabsFocusOnClick; + BOOL buttonPressesRequired; CGFloat defaultScale; NSSize lastKnownSize; } +@property (assign) BOOL canFocus; +@property (assign) BOOL keepCentered; +@property (assign) CGFloat defaultScale; + - (id) initWithWidget:(GtkWidget*)widget; - (GtkWidget*) widget; - (id<InputDelegate>) inputDelegate; - (void) setInputDelegate:(id<InputDelegate>)delegate; -- (BOOL) keepCentered; -- (void) setKeepCentered:(BOOL)centered; - -- (BOOL) grabsFocusOnClick; -- (void) setGrabsFocusOnClick:(BOOL)focusOnClick; - -- (CGFloat) defaultScale; -- (void) setDefaultScale:(CGFloat)scale; - /** * Set the minimum size that this widget wants */ |