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:
authorDaniel Dunbar <daniel@zuster.org>2003-03-24 04:46:05 +0300
committerDaniel Dunbar <daniel@zuster.org>2003-03-24 04:46:05 +0300
commit1f3f52f5e4eb8b55a7ba1d7bc1d656b6a12f0df0 (patch)
treeb57723c590e41321824bc4a7ce31260f1031b32e /source/blender/include/BIF_space.h
parenta6a50cc27f9f961ac78ae63aea75a5931f3bd333 (diff)
Update space dispatch:
- drawXXXspace, changeXXXspace, and winqreadXXXspace now receive the area and spacedata as explicit arguments, allowing them to access private data w/o going through globals. - pass the new BWinEvent through to the winqreadXXXspace, allowing future access to extended event data. Removed direct calls to winqreadXXXspace to simulate user actions, replaced by calls to action functions in edit.c or the appropriate handler.
Diffstat (limited to 'source/blender/include/BIF_space.h')
-rw-r--r--source/blender/include/BIF_space.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/source/blender/include/BIF_space.h b/source/blender/include/BIF_space.h
index 33add3085a6..2c6f6f1ecee 100644
--- a/source/blender/include/BIF_space.h
+++ b/source/blender/include/BIF_space.h
@@ -53,12 +53,9 @@ void scrarea_do_headchange (struct ScrArea *sa);
extern void space_set_commmandline_options(void);
extern void allqueue(unsigned short event, short val);
extern void allspace(unsigned short event, short val);
-extern void changebutspace(void);
-extern void changeview2d(void);
-extern void changeview3d(void);
extern void copy_view3d_lock(short val);
-extern void drawemptyspace(void);
-extern void drawinfospace(void);
+extern void drawemptyspace(struct ScrArea *sa, void *spacedata);
+extern void drawinfospace(struct ScrArea *sa, void *spacedata);
extern void duplicatespacelist(struct ScrArea *area, struct ListBase *lb1, struct ListBase *lb2);
extern void extern_set_butspace(int fkey);
extern void force_draw(void);
@@ -77,14 +74,14 @@ extern void initipo(struct ScrArea *sa);
extern void initview3d(struct ScrArea *sa);
extern void newspace(struct ScrArea *sa, int type);
extern void set_rects_butspace(struct SpaceButs *buts);
-extern void winqreadview3dspace(unsigned short event, short val, char ascii);
-extern void winqreadbutspace(unsigned short event, short val, char ascii);
-extern void winqreadimagespace(unsigned short event, short val, char ascii);
-extern void winqreadinfospace(unsigned short event, short val, char ascii);
-extern void winqreadipospace(unsigned short event, short val, char ascii);
-extern void winqreadoopsspace(unsigned short event, short val, char ascii);
-extern void winqreadnlaspace(unsigned short event, short val, char ascii);
-extern void winqreadseqspace(unsigned short event, short val, char ascii);
+extern void winqreadview3dspace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
+extern void winqreadbutspace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
+extern void winqreadimagespace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
+extern void winqreadinfospace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
+extern void winqreadipospace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
+extern void winqreadoopsspace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
+extern void winqreadnlaspace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
+extern void winqreadseqspace(struct ScrArea *sa, void *spacedata, struct BWinEvent *evt);
extern void test_butspace(void);
extern void start_game(void);