diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-23 05:07:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-23 05:07:13 +0300 |
commit | 76c035bd11ac6dc07796566aa2ebce9acf799d68 (patch) | |
tree | ef5a60d6e43e33850b190e3d47af2fcd5918c9e8 /source/blender/makesdna/DNA_screen_types.h | |
parent | 8d6c2e6ec0adb0e9beeee7f49111962245a0c278 (diff) |
2.5: Data Context
* Worked out data context implementation more, now with initial context
callbacks implemented for the screen and 3d view.
* For collections, switch from iterators to simpler ListBase. Though that still
means it uses LinkData* rather than the actual Object* for example, since
those can only be part of one list. So I added a macro as well to make
iteration easier when possible.
CTX_DATA_BEGIN(C, Object*, ob, selected_objects) {
printf("object name: %s\n", ob->id.name);
}
CTX_DATA_END;
Diffstat (limited to 'source/blender/makesdna/DNA_screen_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index a15c57d6700..af8597ba54d 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -60,6 +60,7 @@ typedef struct bScreen { short subwinactive; /* active subwindow */ struct wmTimer *animtimer; /* if set, screen has timer handler added in window */ + void *context; /* context callback */ short handler[8]; /* similar to space handler */ } bScreen; |