37
38
#define EXPP_DRAW_H_
39
40
#include "DNA_space_types.h"
41
#include "DNA_text_types.h"
41
43
#include "Python.h"
43
45
#include "gen_utils.h"
46
/* From Window.h, used here by py_slider_update() */
47
PyObject *M_Window_Redraw (PyObject * self, PyObject * args);
48
void initDraw( void );
53
51
* Button Object stuct
56
typedef struct _Button
58
PyObject_VAR_HEAD /* required Py Macro */
59
int type; /*@ 1 == int, 2 == float, 3 == string */
60
int slen; /*@ length of string (if type == 3) */
54
typedef struct _Button {
55
PyObject_VAR_HEAD /* required Py Macro */
56
int type; /*@ 1 == int, 2 == float, 3 == string */
57
unsigned int slen; /*@ length of string (if type == 3) */
74
68
* these are declared in ../BPY_extern.h
76
void BPY_spacescript_do_pywin_draw (SpaceScript * sc);
77
void BPY_spacescript_do_pywin_event (SpaceScript * sc,
78
unsigned short event, short val);
79
void BPY_free_compiled_text (Text * text);
81
PyObject *M_Draw_Init (void);
83
#endif /* EXPP_DRAW_H */
70
void BPY_spacescript_do_pywin_draw( SpaceScript * sc );
71
void BPY_spacescript_do_pywin_event( SpaceScript * sc,
72
unsigned short event, short val, char ascii );
73
void BPY_free_compiled_text( Text * text );
75
PyObject *M_Draw_Init( void );
76
PyObject *Draw_Init( void );
78
#endif /* EXPP_DRAW_H */