diff options
author | Ton Roosendaal <ton@blender.org> | 2008-11-19 19:28:11 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-11-19 19:28:11 +0300 |
commit | a1b2c0c0fb7adb1758b0503a5422c377f8d0f73e (patch) | |
tree | e34a21c6621c407b6b140ef107797b9d29819ee7 /source/blender/editors/screen/screen_intern.h | |
parent | fd8c94fdb156ce83f5aa70eddcd85b0af6f1456a (diff) |
Code shuffle to make a bit more structure.
- operator definitions, callbacks, registry to WM and handlers for it are
now always in a file xxxx_ops.c or xxxx_operators.c, in the bottom you
will find the registry and handler code.
- fixed some confusing naming conventions "rip_area vs area_join" etc. Now
stick to convention to first name subject, then operation (like UI :).
So it's area_rip, screen_add, and so on.
- Nicely put exported calls (outside module) together in bottom: this using
names such as ED_screen_duplicate().
- Moved Operator-Property API to new C file.
Diffstat (limited to 'source/blender/editors/screen/screen_intern.h')
-rw-r--r-- | source/blender/editors/screen/screen_intern.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/source/blender/editors/screen/screen_intern.h b/source/blender/editors/screen/screen_intern.h index c1ab9266f2f..6d8bd9e0434 100644 --- a/source/blender/editors/screen/screen_intern.h +++ b/source/blender/editors/screen/screen_intern.h @@ -29,23 +29,22 @@ #define ED_SCREEN_INTERN_H /* internal exports only */ -struct wmOperator; -struct wmEvent; +struct wmWindow; /* area.c */ void area_copy_data(ScrArea *sa1, ScrArea *sa2, int swap_space); /* screen_edit.c */ -int screen_cursor_test(bContext *C, wmOperator *op, wmEvent *event); -int area_cursor_test(bContext *C, wmOperator *op, wmEvent *event); - -void ED_SCR_OT_move_areas(wmOperatorType *ot); -void ED_SCR_OT_split_area(wmOperatorType *ot); -void ED_SCR_OT_join_areas(wmOperatorType *ot); -void ED_SCR_OT_actionzone(wmOperatorType *ot); -void ED_SCR_OT_area_rip(wmOperatorType *ot); - -void ED_SCR_OT_border_select(wmOperatorType *ot); +bScreen *screen_add(struct wmWindow *win, char *name); +ScrEdge *screen_findedge(bScreen *sc, ScrVert *v1, ScrVert *v2); +ScrArea *area_split(wmWindow *win, bScreen *sc, ScrArea *sa, char dir, float fac); +int screen_area_join(bScreen* scr, ScrArea *sa1, ScrArea *sa2); +int area_getorientation(bScreen *screen, ScrArea *sa, ScrArea *sb); + +void removenotused_scrverts(bScreen *sc); +void removedouble_scrverts(bScreen *sc); +void removedouble_scredges(bScreen *sc); +void removenotused_scredges(bScreen *sc); #endif /* ED_SCREEN_INTERN_H */ |