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-12-15 19:54:47 +0300
committerTon Roosendaal <ton@blender.org>2008-12-15 19:54:47 +0300
commita16df53619a2ab3b41c0cbcf6f9e01a9bf370c9c (patch)
treea96b757fd2a791c242b6ace94b22e465bac9b1d2 /source/blender/blenkernel/BKE_screen.h
parentc13bb258b1149d8bbfb97b896a58cd748e7cd861 (diff)
2.5
Mouse cursors now work again - centralized screen-level cursor changes, no more operator running for it. - spacetypes have callback to check/set individual cursor types. Use notifier SCREEN_CHANGED to make sure it works on mode changes etc. - new calls WM_cursor_modal() and WM_cursor_restore() to make temporarily cursor types during modes. - used above for view2d cursors.
Diffstat (limited to 'source/blender/blenkernel/BKE_screen.h')
-rw-r--r--source/blender/blenkernel/BKE_screen.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h
index 5a679b6475f..bb3188de511 100644
--- a/source/blender/blenkernel/BKE_screen.h
+++ b/source/blender/blenkernel/BKE_screen.h
@@ -37,6 +37,7 @@ struct bScreen;
struct ARegion;
struct wmNotifier;
struct wmWindowManager;
+struct wmWindow;
struct ListBase;
/* spacetype has everything stored to get an editor working, it gets initialized via
@@ -69,6 +70,8 @@ typedef struct SpaceType {
void (*operatortypes)(void);
/* add default items to WM keymap */
void (*keymap)(struct wmWindowManager *);
+ /* sets default cursor per region */
+ void (*cursor)(struct wmWindow *win, struct ARegion *ar);
/* region type definitions */
ListBase regiontypes;