export_Color.cxx
Go to the documentation of this file.
1 
12 #ifdef _MSC_VER
13 // nonstandard extension used 'extern' before...
14 # pragma warning(disable:4231)
15 
16 // needs to have dll-interface used by client
17 # pragma warning(disable:4251)
18 
19 // non dll-interface struct
20 # pragma warning(disable:4275)
21 
22 // 'int' : forcing value to bool 'true' or 'false' (performance warning)
23 # pragma warning(disable:4800)
24 #endif
25 
26 // include first to avoid _POSIX_C_SOURCE warning.
27 #include <boost/python.hpp>
28 
29 #include "graphics/Color.h"
30 
31 using namespace boost::python;
32 
33 namespace hippodraw {
34 namespace Python {
35 
36 void
38 {
39  enum_ < Color::Value > ( "ColorValue" )
40  .value ( "red", Color::red )
41  .value ( "green", Color::green )
42  .value ( "blue", Color::blue )
43  .value ( "yellow", Color::yellow )
44  .value ( "orange", Color::orange )
45  .value ( "cyan", Color::cyan )
46  .value ( "magenta", Color::magenta )
47  .value ( "black", Color::black )
48  .value ( "darkgray", Color::darkgray )
49  .value ( "lightgray", Color::lightgray )
50  .value ( "white", Color::white )
51  ;
52 }
53 
54 } // namespace Python
55 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen