~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/Draw.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
 
2
 * $Id: Draw.h,v 1.17 2005/05/08 21:20:33 ianwill Exp $
2
3
 *
3
4
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
4
5
 *
37
38
#define EXPP_DRAW_H_
38
39
 
39
40
#include "DNA_space_types.h"
 
41
#include "DNA_text_types.h"
40
42
 
41
43
#include "Python.h"
42
44
 
43
45
#include "gen_utils.h"
44
 
#include "modules.h"
45
 
 
46
 
/* From Window.h, used here by py_slider_update() */
47
 
PyObject *M_Window_Redraw (PyObject * self, PyObject * args);
48
 
 
49
 
 
50
 
void initDraw (void);
 
46
#include "Window.h"
 
47
 
 
48
void initDraw( void );
51
49
 
52
50
/* 
53
51
 * Button Object stuct 
54
52
 */
55
53
 
56
 
typedef struct _Button
57
 
{
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) */
61
 
  union
62
 
  {
63
 
    int asint;
64
 
    float asfloat;
65
 
    char *asstr;
66
 
  }
67
 
  val;
68
 
  char *tooltip;
69
 
}
70
 
Button;
 
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) */
 
58
        union {
 
59
                int asint;
 
60
                float asfloat;
 
61
                char *asstr;
 
62
        } val;
 
63
        char *tooltip;
 
64
} Button;
71
65
 
72
66
 
73
67
/* 
74
68
 * these are declared in ../BPY_extern.h 
75
69
*/
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);
80
 
 
81
 
PyObject *M_Draw_Init (void);
82
 
 
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 );
 
74
 
 
75
PyObject *M_Draw_Init( void );
 
76
PyObject *Draw_Init( void );
 
77
 
 
78
#endif                          /* EXPP_DRAW_H */