1 // This file has been generated by Py++.
2 
3 #include "boost/python.hpp"
4 #include "generators/include/python_CEGUI.h"
5 #include "ColourRect.pypp.hpp"
6 
7 namespace bp = boost::python;
8 
register_ColourRect_class()9 void register_ColourRect_class(){
10 
11     { //::CEGUI::ColourRect
12         typedef bp::class_< CEGUI::ColourRect > ColourRect_exposer_t;
13         ColourRect_exposer_t ColourRect_exposer = ColourRect_exposer_t( "ColourRect", bp::init< >("*!\n\
14         \n\
15            Default constructor\n\
16         *\n") );
17         bp::scope ColourRect_scope( ColourRect_exposer );
18         ColourRect_exposer.def( bp::init< CEGUI::Colour const & >(( bp::arg("col") ), "*!\n\
19         \n\
20            Constructor for ColourRect objects (via single colour).  Also handles default construction.\n\
21         *\n") );
22         bp::implicitly_convertible< CEGUI::Colour const &, CEGUI::ColourRect >();
23         ColourRect_exposer.def( bp::init< CEGUI::Colour const &, CEGUI::Colour const &, CEGUI::Colour const &, CEGUI::Colour const & >(( bp::arg("top_left"), bp::arg("top_right"), bp::arg("bottom_left"), bp::arg("bottom_right") ), "*!\n\
24         \n\
25            Constructor for ColourRect objects\n\
26         *\n") );
27         { //::CEGUI::ColourRect::getColourAtPoint
28 
29             typedef ::CEGUI::Colour ( ::CEGUI::ColourRect::*getColourAtPoint_function_type )( float,float ) const;
30 
31             ColourRect_exposer.def(
32                 "getColourAtPoint"
33                 , getColourAtPoint_function_type( &::CEGUI::ColourRect::getColourAtPoint )
34                 , ( bp::arg("x"), bp::arg("y") )
35                 , "*!\n\
36                \n\
37                   Get the colour at a point in the rectangle\n\
38             \n\
39                @param x\n\
40                   The x coordinate of the point\n\
41                @param y\n\
42                   The y coordinate of the point\n\
43             \n\
44                @return\n\
45                   The colour at the specified point.\n\
46                *\n" );
47 
48         }
49         { //::CEGUI::ColourRect::getSubRectangle
50 
51             typedef ::CEGUI::ColourRect ( ::CEGUI::ColourRect::*getSubRectangle_function_type )( float,float,float,float ) const;
52 
53             ColourRect_exposer.def(
54                 "getSubRectangle"
55                 , getSubRectangle_function_type( &::CEGUI::ColourRect::getSubRectangle )
56                 , ( bp::arg("left"), bp::arg("right"), bp::arg("top"), bp::arg("bottom") )
57                 , "*!\n\
58                \n\
59                   Gets a portion of this ColourRect as a subset ColourRect\n\
60             \n\
61                @param left\n\
62                   The left side of this subrectangle (in the range of 0-1 float)\n\
63                @param right\n\
64                   The right side of this subrectangle (in the range of 0-1 float)\n\
65                @param top\n\
66                   The top side of this subrectangle (in the range of 0-1 float)\n\
67                @param bottom\n\
68                   The bottom side of this subrectangle (in the range of 0-1 float)\n\
69             \n\
70                @return\n\
71                   A ColourRect from the specified range\n\
72                *\n" );
73 
74         }
75         { //::CEGUI::ColourRect::isMonochromatic
76 
77             typedef bool ( ::CEGUI::ColourRect::*isMonochromatic_function_type )(  ) const;
78 
79             ColourRect_exposer.def(
80                 "isMonochromatic"
81                 , isMonochromatic_function_type( &::CEGUI::ColourRect::isMonochromatic )
82                 , "*!\n\
83                \n\
84                   Determinate the ColourRect is monochromatic or variegated.\n\
85             \n\
86                @return\n\
87                   True if all four corners of the ColourRect has same colour, false otherwise.\n\
88                *\n" );
89 
90         }
91         { //::CEGUI::ColourRect::modulateAlpha
92 
93             typedef void ( ::CEGUI::ColourRect::*modulateAlpha_function_type )( float ) ;
94 
95             ColourRect_exposer.def(
96                 "modulateAlpha"
97                 , modulateAlpha_function_type( &::CEGUI::ColourRect::modulateAlpha )
98                 , ( bp::arg("alpha") )
99                 , "*!\n\
100                \n\
101                   Module the alpha components of each corner's colour by a constant.\n\
102             \n\
103                @param alpha\n\
104                   The constant factor to modulate all alpha colour components by.\n\
105                *\n" );
106 
107         }
108         ColourRect_exposer.def( bp::self * bp::other< float >() );
109         ColourRect_exposer.def( bp::self *= bp::self );
110         ColourRect_exposer.def( bp::self + bp::self );
111         { //::CEGUI::ColourRect::setAlpha
112 
113             typedef void ( ::CEGUI::ColourRect::*setAlpha_function_type )( float ) ;
114 
115             ColourRect_exposer.def(
116                 "setAlpha"
117                 , setAlpha_function_type( &::CEGUI::ColourRect::setAlpha )
118                 , ( bp::arg("alpha") )
119                 , "*!\n\
120                \n\
121                   Set the alpha value to use for all four corners of the ColourRect.\n\
122             \n\
123                @param alpha\n\
124                   Alpha value to use.\n\
125             \n\
126                @return\n\
127                   Nothing.\n\
128                *\n" );
129 
130         }
131         { //::CEGUI::ColourRect::setBottomAlpha
132 
133             typedef void ( ::CEGUI::ColourRect::*setBottomAlpha_function_type )( float ) ;
134 
135             ColourRect_exposer.def(
136                 "setBottomAlpha"
137                 , setBottomAlpha_function_type( &::CEGUI::ColourRect::setBottomAlpha )
138                 , ( bp::arg("alpha") )
139                 , "*!\n\
140                \n\
141                   Set the alpha value to use for the bottom edge of the ColourRect.\n\
142             \n\
143                @param alpha\n\
144                   Alpha value to use.\n\
145             \n\
146                @return\n\
147                   Nothing.\n\
148                *\n" );
149 
150         }
151         { //::CEGUI::ColourRect::setColours
152 
153             typedef void ( ::CEGUI::ColourRect::*setColours_function_type )( ::CEGUI::Colour const & ) ;
154 
155             ColourRect_exposer.def(
156                 "setColours"
157                 , setColours_function_type( &::CEGUI::ColourRect::setColours )
158                 , ( bp::arg("col") )
159                 , "*!\n\
160                \n\
161                   Set the colour of all four corners simultaneously.\n\
162             \n\
163                @param col\n\
164                   colour that is to be set for all four corners of the ColourRect;\n\
165                *\n" );
166 
167         }
168         { //::CEGUI::ColourRect::setLeftAlpha
169 
170             typedef void ( ::CEGUI::ColourRect::*setLeftAlpha_function_type )( float ) ;
171 
172             ColourRect_exposer.def(
173                 "setLeftAlpha"
174                 , setLeftAlpha_function_type( &::CEGUI::ColourRect::setLeftAlpha )
175                 , ( bp::arg("alpha") )
176                 , "*!\n\
177                \n\
178                   Set the alpha value to use for the left edge of the ColourRect.\n\
179             \n\
180                @param alpha\n\
181                   Alpha value to use.\n\
182             \n\
183                @return\n\
184                   Nothing.\n\
185                *\n" );
186 
187         }
188         { //::CEGUI::ColourRect::setRightAlpha
189 
190             typedef void ( ::CEGUI::ColourRect::*setRightAlpha_function_type )( float ) ;
191 
192             ColourRect_exposer.def(
193                 "setRightAlpha"
194                 , setRightAlpha_function_type( &::CEGUI::ColourRect::setRightAlpha )
195                 , ( bp::arg("alpha") )
196                 , "*!\n\
197                \n\
198                   Set the alpha value to use for the right edge of the ColourRect.\n\
199             \n\
200                @param alpha\n\
201                   Alpha value to use.\n\
202             \n\
203                @return\n\
204                   Nothing.\n\
205                *\n" );
206 
207         }
208         { //::CEGUI::ColourRect::setTopAlpha
209 
210             typedef void ( ::CEGUI::ColourRect::*setTopAlpha_function_type )( float ) ;
211 
212             ColourRect_exposer.def(
213                 "setTopAlpha"
214                 , setTopAlpha_function_type( &::CEGUI::ColourRect::setTopAlpha )
215                 , ( bp::arg("alpha") )
216                 , "*!\n\
217                \n\
218                   Set the alpha value to use for the top edge of the ColourRect.\n\
219             \n\
220                @param alpha\n\
221                   Alpha value to use.\n\
222             \n\
223                @return\n\
224                   Nothing.\n\
225                *\n" );
226 
227         }
228         ColourRect_exposer.def_readwrite( "d_bottom_left", &CEGUI::ColourRect::d_bottom_left );
229         ColourRect_exposer.def_readwrite( "d_bottom_right", &CEGUI::ColourRect::d_bottom_right );
230         ColourRect_exposer.def_readwrite( "d_top_left", &CEGUI::ColourRect::d_top_left );
231         ColourRect_exposer.def_readwrite( "d_top_right", &CEGUI::ColourRect::d_top_right );
232     }
233 
234 }
235