Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-11-19 16:16:05 +0300
committerTon Roosendaal <ton@blender.org>2008-11-19 16:16:05 +0300
commitfd8c94fdb156ce83f5aa70eddcd85b0af6f1456a (patch)
treeaeb617ba7ba4e8255c8697e64c244c0d35b07164 /source/blender/windowmanager/wm.h
parentecde558252727584cdcd20b42c3d727ecbe26af2 (diff)
2.5: gesture code in WM
- Simplified and cleaned previous border code It was a bit too complex, too many data manipulations Original idea was to have WM API calls to manage border, circle, lines, lasso, etc. This now means that WM provides callbacks for custom operators, so it's very easy to make them. Check bottom of screen_edit.c for an example. Currently two borders were coded; with and without cross hair. Press Bkey in any area-region to test it (note: time window has wrong matrix!) Some specs to note: - gestures are in region space, and draw 'over'. That latter still needs some work when we do real composites. - only the active region is redrawn. - on todo is the generic gesture engine for 'tweak' or like how currently grab gestures in Blender work. These will be configurable per area-region, and WM then will send the proper "Gesture Event" with properties (N, S, E, W, etc) to which you then can assign operators. Such events will be generated with low priority, so other handlers who swallowed mouse events have preference.
Diffstat (limited to 'source/blender/windowmanager/wm.h')
-rw-r--r--source/blender/windowmanager/wm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm.h b/source/blender/windowmanager/wm.h
index 739b0266c78..4699374a612 100644
--- a/source/blender/windowmanager/wm.h
+++ b/source/blender/windowmanager/wm.h
@@ -28,6 +28,8 @@
#ifndef WM_H
#define WM_H
+struct wmWindow;
+
extern void wm_close_and_free(bContext *C, wmWindowManager *);
extern void wm_close_and_free_all(bContext *C, ListBase *);
@@ -44,6 +46,8 @@ extern void wm_report_free(wmReport *report);
void wm_operatortype_free(void);
void wm_operatortype_init(void);
+/* wm_gesture.c */
+void wm_gesture_draw(struct wmWindow *win);
#endif /* WM_H */