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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user