1 // This file has been generated by Py++.
2
3 #include "boost/python.hpp"
4 #include "generators/include/python_CEGUI.h"
5 #include "FalagardComponentBase.pypp.hpp"
6
7 namespace bp = boost::python;
8
9 struct FalagardComponentBase_wrapper : CEGUI::FalagardComponentBase, bp::wrapper< CEGUI::FalagardComponentBase > {
10
FalagardComponentBase_wrapperFalagardComponentBase_wrapper11 FalagardComponentBase_wrapper( )
12 : CEGUI::FalagardComponentBase( )
13 , bp::wrapper< CEGUI::FalagardComponentBase >(){
14 // null constructor
15
16 }
17
handleFontRenderSizeChangeFalagardComponentBase_wrapper18 virtual bool handleFontRenderSizeChange( ::CEGUI::Window & window, ::CEGUI::Font const * font ) const {
19 if( bp::override func_handleFontRenderSizeChange = this->get_override( "handleFontRenderSizeChange" ) )
20 return func_handleFontRenderSizeChange( boost::ref(window), boost::python::ptr(font) );
21 else{
22 return this->CEGUI::FalagardComponentBase::handleFontRenderSizeChange( boost::ref(window), boost::python::ptr(font) );
23 }
24 }
25
default_handleFontRenderSizeChangeFalagardComponentBase_wrapper26 bool default_handleFontRenderSizeChange( ::CEGUI::Window & window, ::CEGUI::Font const * font ) const {
27 return CEGUI::FalagardComponentBase::handleFontRenderSizeChange( boost::ref(window), boost::python::ptr(font) );
28 }
29
initColoursRectFalagardComponentBase_wrapper30 void initColoursRect( ::CEGUI::Window const & wnd, ::CEGUI::ColourRect const * modCols, ::CEGUI::ColourRect & cr ) const {
31 CEGUI::FalagardComponentBase::initColoursRect( boost::ref(wnd), boost::python::ptr(modCols), boost::ref(cr) );
32 }
33
render_implFalagardComponentBase_wrapper34 virtual void render_impl( ::CEGUI::Window & srcWindow, ::CEGUI::Rectf & destRect, ::CEGUI::ColourRect const * modColours, ::CEGUI::Rectf const * clipper, bool clipToDisplay ) const {
35 bp::override func_render_impl = this->get_override( "render_impl" );
36 func_render_impl( boost::ref(srcWindow), boost::ref(destRect), boost::python::ptr(modColours), boost::python::ptr(clipper), clipToDisplay );
37 }
38
writeColoursXMLFalagardComponentBase_wrapper39 bool writeColoursXML( ::CEGUI::XMLSerializer & xml_stream ) const {
40 return CEGUI::FalagardComponentBase::writeColoursXML( boost::ref(xml_stream) );
41 }
42
43 };
44
register_FalagardComponentBase_class()45 void register_FalagardComponentBase_class(){
46
47 { //::CEGUI::FalagardComponentBase
48 typedef bp::class_< FalagardComponentBase_wrapper, boost::noncopyable > FalagardComponentBase_exposer_t;
49 FalagardComponentBase_exposer_t FalagardComponentBase_exposer = FalagardComponentBase_exposer_t( "FalagardComponentBase", bp::init< >() );
50 bp::scope FalagardComponentBase_scope( FalagardComponentBase_exposer );
51 { //::CEGUI::FalagardComponentBase::getColours
52
53 typedef ::CEGUI::ColourRect const & ( ::CEGUI::FalagardComponentBase::*getColours_function_type )( ) const;
54
55 FalagardComponentBase_exposer.def(
56 "getColours"
57 , getColours_function_type( &::CEGUI::FalagardComponentBase::getColours )
58 , bp::return_value_policy< bp::copy_const_reference >()
59 , "*!\n\
60 \n\
61 Return the ColourRect used by this component.\n\
62 \n\
63 @return\n\
64 ColourRect object holding the colours currently in use by this\n\
65 component.\n\
66 *\n" );
67
68 }
69 { //::CEGUI::FalagardComponentBase::getColoursPropertySource
70
71 typedef ::CEGUI::String const & ( ::CEGUI::FalagardComponentBase::*getColoursPropertySource_function_type )( ) const;
72
73 FalagardComponentBase_exposer.def(
74 "getColoursPropertySource"
75 , getColoursPropertySource_function_type( &::CEGUI::FalagardComponentBase::getColoursPropertySource )
76 , bp::return_value_policy< bp::copy_const_reference >()
77 , "*!\n\
78 \n\
79 Returns the name of the property from which the colour values will be obtained, if set.\n\
80 \n\
81 @return\n\
82 String object holding the name of the property.\n\
83 *\n" );
84
85 }
86 { //::CEGUI::FalagardComponentBase::getComponentArea
87
88 typedef ::CEGUI::ComponentArea const & ( ::CEGUI::FalagardComponentBase::*getComponentArea_function_type )( ) const;
89
90 FalagardComponentBase_exposer.def(
91 "getComponentArea"
92 , getComponentArea_function_type( &::CEGUI::FalagardComponentBase::getComponentArea )
93 , bp::return_value_policy< bp::copy_const_reference >()
94 , "*!\n\
95 \n\
96 Return the ComponentArea of this component.\n\
97 \n\
98 @return\n\
99 ComponentArea object describing the component's current target area.\n\
100 *\n" );
101
102 }
103 { //::CEGUI::FalagardComponentBase::handleFontRenderSizeChange
104
105 typedef bool ( ::CEGUI::FalagardComponentBase::*handleFontRenderSizeChange_function_type )( ::CEGUI::Window &,::CEGUI::Font const * ) const;
106 typedef bool ( FalagardComponentBase_wrapper::*default_handleFontRenderSizeChange_function_type )( ::CEGUI::Window &,::CEGUI::Font const * ) const;
107
108 FalagardComponentBase_exposer.def(
109 "handleFontRenderSizeChange"
110 , handleFontRenderSizeChange_function_type(&::CEGUI::FalagardComponentBase::handleFontRenderSizeChange)
111 , default_handleFontRenderSizeChange_function_type(&FalagardComponentBase_wrapper::default_handleFontRenderSizeChange)
112 , ( bp::arg("window"), bp::arg("font") ) );
113
114 }
115 { //::CEGUI::FalagardComponentBase::initColoursRect
116
117 typedef void ( FalagardComponentBase_wrapper::*initColoursRect_function_type )( ::CEGUI::Window const &,::CEGUI::ColourRect const *,::CEGUI::ColourRect & ) const;
118
119 FalagardComponentBase_exposer.def(
120 "initColoursRect"
121 , initColoursRect_function_type( &FalagardComponentBase_wrapper::initColoursRect )
122 , ( bp::arg("wnd"), bp::arg("modCols"), bp::arg("cr") ) );
123
124 }
125 { //::CEGUI::FalagardComponentBase::render
126
127 typedef void ( ::CEGUI::FalagardComponentBase::*render_function_type )( ::CEGUI::Window &,::CEGUI::ColourRect const *,::CEGUI::Rectf const *,bool ) const;
128
129 FalagardComponentBase_exposer.def(
130 "render"
131 , render_function_type( &::CEGUI::FalagardComponentBase::render )
132 , ( bp::arg("srcWindow"), bp::arg("modColours")=bp::object(), bp::arg("clipper")=bp::object(), bp::arg("clipToDisplay")=(bool)(false) )
133 , "*!\n\
134 \n\
135 Render this component. More correctly, the component is cached for\n\
136 rendering.\n\
137 \n\
138 @param srcWindow\n\
139 Window to use as the base for translating the component's ComponentArea\n\
140 into pixel values.\n\
141 \n\
142 @param modColours\n\
143 ColourRect describing colours that are to be modulated with the\n\
144 component's stored colour values to calculate a set of 'final' colour\n\
145 values to be used. May be 0.\n\
146 *\n" );
147
148 }
149 { //::CEGUI::FalagardComponentBase::render
150
151 typedef void ( ::CEGUI::FalagardComponentBase::*render_function_type )( ::CEGUI::Window &,::CEGUI::Rectf const &,::CEGUI::ColourRect const *,::CEGUI::Rectf const *,bool ) const;
152
153 FalagardComponentBase_exposer.def(
154 "render"
155 , render_function_type( &::CEGUI::FalagardComponentBase::render )
156 , ( bp::arg("srcWindow"), bp::arg("baseRect"), bp::arg("modColours")=bp::object(), bp::arg("clipper")=bp::object(), bp::arg("clipToDisplay")=(bool)(false) ) );
157
158 }
159 { //::CEGUI::FalagardComponentBase::render_impl
160
161 typedef void ( FalagardComponentBase_wrapper::*render_impl_function_type )( ::CEGUI::Window &,::CEGUI::Rectf &,::CEGUI::ColourRect const *,::CEGUI::Rectf const *,bool ) const;
162
163 FalagardComponentBase_exposer.def(
164 "render_impl"
165 , render_impl_function_type( &FalagardComponentBase_wrapper::render_impl )
166 , ( bp::arg("srcWindow"), bp::arg("destRect"), bp::arg("modColours"), bp::arg("clipper"), bp::arg("clipToDisplay") ) );
167
168 }
169 { //::CEGUI::FalagardComponentBase::setColours
170
171 typedef void ( ::CEGUI::FalagardComponentBase::*setColours_function_type )( ::CEGUI::ColourRect const & ) ;
172
173 FalagardComponentBase_exposer.def(
174 "setColours"
175 , setColours_function_type( &::CEGUI::FalagardComponentBase::setColours )
176 , ( bp::arg("cols") )
177 , "*!\n\
178 \n\
179 Set the colours to be used by this component.\n\
180 \n\
181 @param cols\n\
182 ColourRect object describing the colours to be used by this component.\n\
183 *\n" );
184
185 }
186 { //::CEGUI::FalagardComponentBase::setColoursPropertySource
187
188 typedef void ( ::CEGUI::FalagardComponentBase::*setColoursPropertySource_function_type )( ::CEGUI::String const & ) ;
189
190 FalagardComponentBase_exposer.def(
191 "setColoursPropertySource"
192 , setColoursPropertySource_function_type( &::CEGUI::FalagardComponentBase::setColoursPropertySource )
193 , ( bp::arg("property") )
194 , "*!\n\
195 \n\
196 Set the name of the property where colour values will be obtained, if set.\n\
197 \n\
198 @param property\n\
199 String containing the name of the property.\n\
200 *\n" );
201
202 }
203 { //::CEGUI::FalagardComponentBase::setComponentArea
204
205 typedef void ( ::CEGUI::FalagardComponentBase::*setComponentArea_function_type )( ::CEGUI::ComponentArea const & ) ;
206
207 FalagardComponentBase_exposer.def(
208 "setComponentArea"
209 , setComponentArea_function_type( &::CEGUI::FalagardComponentBase::setComponentArea )
210 , ( bp::arg("area") )
211 , "*!\n\
212 \n\
213 Set the conponent's ComponentArea.\n\
214 \n\
215 @param area\n\
216 ComponentArea object describing a new target area for the component.\n\
217 *\n" );
218
219 }
220 { //::CEGUI::FalagardComponentBase::writeColoursXML
221
222 typedef bool ( FalagardComponentBase_wrapper::*writeColoursXML_function_type )( ::CEGUI::XMLSerializer & ) const;
223
224 FalagardComponentBase_exposer.def(
225 "writeColoursXML"
226 , writeColoursXML_function_type( &FalagardComponentBase_wrapper::writeColoursXML )
227 , ( bp::arg("xml_stream") )
228 , "*!\n\
229 \n\
230 Writes xml for the colours to a OutStream.\n\
231 Will prefer property colours before explicit.\n\
232 \n\
233 \note\n\
234 This is intended as a helper function for sub-classes when outputting\n\
235 xml to a stream.\n\
236 \n\
237 @return\n\
238 - true if xml element was written.\n\
239 - false if nothing was output due to the formatting not being set\n\
240 (sub-class may then choose to do something else.)\n\
241 *\n" );
242
243 }
244 }
245
246 }
247