diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-04 20:45:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-04 20:45:54 +0300 |
commit | 3aeb63cad2340d92c17df375bbe55629299661c0 (patch) | |
tree | 026caa458a44d8c6478040faa1568647c2fff7af /source/blender/blenkernel/BKE_screen.h | |
parent | f7cb86df3a9ceccc4d649e42735732a608169157 (diff) |
2.5
WM: added area-listener, which can be used to tag refreshes for
either the drawing call, or use the new ED_area_tag_refresh()
function which will automatically call, after all notifiers
were handled, an the spacetype->refresh() you provided.
Added for Joshua, after reviewing Action/Dopesheet requirements.
Joshua: I've made two dummy functions in space_action.c:
- action_listener()
- action_refresh()
Wich now does a printf on activating a new object.
Diffstat (limited to 'source/blender/blenkernel/BKE_screen.h')
-rw-r--r-- | source/blender/blenkernel/BKE_screen.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index 60072ec2553..ab91612defe 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -63,7 +63,10 @@ typedef struct SpaceType { /* init is to cope with file load, screen (size) changes, check handlers */ void (*init)(struct wmWindowManager *, struct ScrArea *); /* Listeners can react to bContext changes */ - void (*listener)(struct ARegion *, struct wmNotifier *); + void (*listener)(struct ScrArea *, struct wmNotifier *); + + /* refresh context, called after filereads, ED_area_tag_refresh() */ + void (*refresh)(const struct bContext *, struct ScrArea *); /* after a spacedata copy, an init should result in exact same situation */ struct SpaceLink *(*duplicate)(struct SpaceLink *); |