diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-12-14 04:18:09 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-12-14 04:18:09 +0300 |
commit | 49021f7ec4bfc1313c6cdfeae1f9c32e98cc9cdc (patch) | |
tree | 44e7c4c38bc8c26b5efe0b52b846402589a4ca9a /source/blender/python/api2_2x/Draw.h | |
parent | 6653af79142aa929eb3d131f8fced363b2c4b828 (diff) |
BPython - first step for better integration of Python in Blender:
- add a new space: Space Script
- add a new dna struct: Script
- add these two properly everywhere they are meant to
It's not a tiny commit, but most of it is ground work for what is still to be done.
Right now the benefits should be: freeing the Text Editor to be used in a window even while a script w/ gui in "on" and letting more than one currently running script w/ gui be accessible from each window
Some files are added, so some build systems (not autotools) will need updates
Diffstat (limited to 'source/blender/python/api2_2x/Draw.h')
-rw-r--r-- | source/blender/python/api2_2x/Draw.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source/blender/python/api2_2x/Draw.h b/source/blender/python/api2_2x/Draw.h index 3fbac1de12e..3681e4a5fe9 100644 --- a/source/blender/python/api2_2x/Draw.h +++ b/source/blender/python/api2_2x/Draw.h @@ -46,10 +46,12 @@ #include "BMF_Api.h" #include "DNA_screen_types.h" +#include "DNA_script_types.h" #include "DNA_space_types.h" #include "DNA_text_types.h" #include "BKE_global.h" +#include "BKE_library.h" #include "BIF_gl.h" #include "BIF_screen.h" @@ -77,7 +79,6 @@ int g_window_redrawn; static char Draw_doc[] = "The Blender.Draw submodule"; -static void exit_pydraw (SpaceText *st); static uiBlock *Get_uiBlock (void); void initDraw (void); @@ -119,13 +120,14 @@ static Button *newbutton (void); /* GUI interface routines */ -static void exit_pydraw(SpaceText *st); -static void exec_callback(SpaceText *st, PyObject *callback, PyObject *args); -void BPY_spacetext_do_pywin_draw(SpaceText *st); -static void spacetext_do_pywin_buttons(SpaceText *st, unsigned short event); -void BPY_spacetext_do_pywin_event(SpaceText *st, - unsigned short event, short val); -int BPY_spacetext_is_pywin(SpaceText *sc); +static void exit_pydraw(SpaceScript *sc, short error); +static void exec_callback(SpaceScript *sc, PyObject *callback, PyObject *args); + +/* these are declared in ../BPY_extern.h */ +void BPY_spacescript_do_pywin_draw(SpaceScript *sc); +static void spacescript_do_pywin_buttons(SpaceScript *sc, unsigned short event); +void BPY_spacescript_do_pywin_event(SpaceScript *sc, unsigned short event, short val); +void BPY_free_compiled_text(Text *text); static char Method_Exit_doc[] = "() - Exit the windowing interface"; |