1 // This file has been generated by Py++.
2
3 #include "boost/python.hpp"
4 #include "generators/include/python_CEGUI.h"
5 #include "System.pypp.hpp"
6
7 namespace bp = boost::python;
8
9 struct System_wrapper : CEGUI::System, bp::wrapper< CEGUI::System > {
10
System_wrapperSystem_wrapper11 System_wrapper(::CEGUI::Renderer & renderer, ::CEGUI::ResourceProvider * resourceProvider, ::CEGUI::XMLParser * xmlParser, ::CEGUI::ImageCodec * imageCodec, ::CEGUI::ScriptModule * scriptModule, ::CEGUI::String const & configFile, ::CEGUI::String const & logFile )
12 : CEGUI::System( boost::ref(renderer), boost::python::ptr(resourceProvider), boost::python::ptr(xmlParser), boost::python::ptr(imageCodec), boost::python::ptr(scriptModule), boost::ref(configFile), boost::ref(logFile) )
13 , bp::wrapper< CEGUI::System >(){
14 // constructor
15
16 }
17
cleanupImageCodecSystem_wrapper18 void cleanupImageCodec( ){
19 CEGUI::System::cleanupImageCodec( );
20 }
21
cleanupXMLParserSystem_wrapper22 void cleanupXMLParser( ){
23 CEGUI::System::cleanupXMLParser( );
24 }
25
createSingletonsSystem_wrapper26 void createSingletons( ){
27 CEGUI::System::createSingletons( );
28 }
29
destroySingletonsSystem_wrapper30 void destroySingletons( ){
31 CEGUI::System::destroySingletons( );
32 }
33
invalidateAllWindowsSystem_wrapper34 void invalidateAllWindows( ){
35 CEGUI::System::invalidateAllWindows( );
36 }
37
outputLogHeaderSystem_wrapper38 void outputLogHeader( ){
39 CEGUI::System::outputLogHeader( );
40 }
41
setupImageCodecSystem_wrapper42 void setupImageCodec( ::CEGUI::String const & codecName ){
43 CEGUI::System::setupImageCodec( boost::ref(codecName) );
44 }
45
setupXMLParserSystem_wrapper46 void setupXMLParser( ){
47 CEGUI::System::setupXMLParser( );
48 }
49
fireEventSystem_wrapper50 virtual void fireEvent( ::CEGUI::String const & name, ::CEGUI::EventArgs & args, ::CEGUI::String const & eventNamespace="" ) {
51 if( bp::override func_fireEvent = this->get_override( "fireEvent" ) )
52 func_fireEvent( boost::ref(name), boost::ref(args), boost::ref(eventNamespace) );
53 else{
54 this->CEGUI::EventSet::fireEvent( boost::ref(name), boost::ref(args), boost::ref(eventNamespace) );
55 }
56 }
57
default_fireEventSystem_wrapper58 void default_fireEvent( ::CEGUI::String const & name, ::CEGUI::EventArgs & args, ::CEGUI::String const & eventNamespace="" ) {
59 CEGUI::EventSet::fireEvent( boost::ref(name), boost::ref(args), boost::ref(eventNamespace) );
60 }
61
fireEvent_implSystem_wrapper62 void fireEvent_impl( ::CEGUI::String const & name, ::CEGUI::EventArgs & args ){
63 CEGUI::EventSet::fireEvent_impl( boost::ref(name), boost::ref(args) );
64 }
65
getScriptModuleSystem_wrapper66 ::CEGUI::ScriptModule * getScriptModule( ) const {
67 return CEGUI::EventSet::getScriptModule( );
68 }
69
subscribeScriptedEventSystem_wrapper70 virtual ::CEGUI::RefCounted< CEGUI::BoundSlot > subscribeScriptedEvent( ::CEGUI::String const & name, ::CEGUI::String const & subscriber_name ) {
71 if( bp::override func_subscribeScriptedEvent = this->get_override( "subscribeScriptedEvent" ) )
72 return func_subscribeScriptedEvent( boost::ref(name), boost::ref(subscriber_name) );
73 else{
74 return this->CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), boost::ref(subscriber_name) );
75 }
76 }
77
default_subscribeScriptedEventSystem_wrapper78 ::CEGUI::RefCounted< CEGUI::BoundSlot > default_subscribeScriptedEvent( ::CEGUI::String const & name, ::CEGUI::String const & subscriber_name ) {
79 return CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), boost::ref(subscriber_name) );
80 }
81
subscribeScriptedEventSystem_wrapper82 virtual ::CEGUI::RefCounted< CEGUI::BoundSlot > subscribeScriptedEvent( ::CEGUI::String const & name, unsigned int group, ::CEGUI::String const & subscriber_name ) {
83 if( bp::override func_subscribeScriptedEvent = this->get_override( "subscribeScriptedEvent" ) )
84 return func_subscribeScriptedEvent( boost::ref(name), group, boost::ref(subscriber_name) );
85 else{
86 return this->CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), group, boost::ref(subscriber_name) );
87 }
88 }
89
default_subscribeScriptedEventSystem_wrapper90 ::CEGUI::RefCounted< CEGUI::BoundSlot > default_subscribeScriptedEvent( ::CEGUI::String const & name, unsigned int group, ::CEGUI::String const & subscriber_name ) {
91 return CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), group, boost::ref(subscriber_name) );
92 }
93
94 };
95
register_System_class()96 void register_System_class(){
97
98 { //::CEGUI::System
99 typedef bp::class_< System_wrapper, bp::bases< CEGUI::Singleton< CEGUI::System >, CEGUI::EventSet >, boost::noncopyable > System_exposer_t;
100 System_exposer_t System_exposer = System_exposer_t( "System", bp::no_init );
101 bp::scope System_scope( System_exposer );
102 System_exposer.def( bp::init< CEGUI::Renderer &, CEGUI::ResourceProvider *, CEGUI::XMLParser *, CEGUI::ImageCodec *, CEGUI::ScriptModule *, CEGUI::String const &, CEGUI::String const & >(( bp::arg("renderer"), bp::arg("resourceProvider"), bp::arg("xmlParser"), bp::arg("imageCodec"), bp::arg("scriptModule"), bp::arg("configFile"), bp::arg("logFile") )) );
103 { //::CEGUI::System::addStandardWindowFactories
104
105 typedef void ( ::CEGUI::System::*addStandardWindowFactories_function_type )( ) ;
106
107 System_exposer.def(
108 "addStandardWindowFactories"
109 , addStandardWindowFactories_function_type( &::CEGUI::System::addStandardWindowFactories )
110 , "*!\n\
111 adds factories for all the basic window types\n\
112 \n\
113 You do not need to call this manually! Standard Window factories will be\n\
114 added automatically. One occasion when you will need this is if you\n\
115 remove all window factories from WindowFactoryManager and want to add the\n\
116 standard ones back\n\
117 *\n" );
118
119 }
120 { //::CEGUI::System::cleanupImageCodec
121
122 typedef void ( System_wrapper::*cleanupImageCodec_function_type )( ) ;
123
124 System_exposer.def(
125 "cleanupImageCodec"
126 , cleanupImageCodec_function_type( &System_wrapper::cleanupImageCodec )
127 , "! cleanup image codec \n" );
128
129 }
130 { //::CEGUI::System::cleanupXMLParser
131
132 typedef void ( System_wrapper::*cleanupXMLParser_function_type )( ) ;
133
134 System_exposer.def(
135 "cleanupXMLParser"
136 , cleanupXMLParser_function_type( &System_wrapper::cleanupXMLParser )
137 , "! handle cleanup of the XML parser\n" );
138
139 }
140 { //::CEGUI::System::create
141
142 typedef ::CEGUI::System & ( *create_function_type )( ::CEGUI::Renderer &,::CEGUI::ResourceProvider *,::CEGUI::XMLParser *,::CEGUI::ImageCodec *,::CEGUI::ScriptModule *,::CEGUI::String const &,::CEGUI::String const &,int const );
143
144 System_exposer.def(
145 "create"
146 , create_function_type( &::CEGUI::System::create )
147 , ( bp::arg("renderer"), bp::arg("resourceProvider")=bp::object(), bp::arg("xmlParser")=bp::object(), bp::arg("imageCodec")=bp::object(), bp::arg("scriptModule")=bp::object(), bp::arg("configFile")="", bp::arg("logFile")="CEGUI.log", bp::arg("abi")=(int const)(208) )
148 , bp::return_value_policy< bp::reference_existing_object >() );
149
150 }
151 { //::CEGUI::System::createGUIContext
152
153 typedef ::CEGUI::GUIContext & ( ::CEGUI::System::*createGUIContext_function_type )( ::CEGUI::RenderTarget & ) ;
154
155 System_exposer.def(
156 "createGUIContext"
157 , createGUIContext_function_type( &::CEGUI::System::createGUIContext )
158 , ( bp::arg("rt") )
159 , bp::return_value_policy< bp::reference_existing_object >() );
160
161 }
162 { //::CEGUI::System::createRegexMatcher
163
164 typedef ::CEGUI::RegexMatcher * ( ::CEGUI::System::*createRegexMatcher_function_type )( ) const;
165
166 System_exposer.def(
167 "createRegexMatcher"
168 , createRegexMatcher_function_type( &::CEGUI::System::createRegexMatcher )
169 , bp::return_value_policy< bp::reference_existing_object >()
170 , "*!\n\
171 \n\
172 Create a RegexMatcher instance if support is available.\n\
173 \n\
174 @return\n\
175 Pointer to an object that implements the RegexMatcher interface, or 0\n\
176 if the system has no built in support for RegexMatcher creation.\n\
177 \n\
178 \note\n\
179 The created RegexMatcher is not tracked in any way, and it is the\n\
180 resposibility of the caller to destroy the RegexMatcher when it is no\n\
181 longer needed by calling System.destroyRegexMatcher.\n\
182 *\n" );
183
184 }
185 { //::CEGUI::System::createSingletons
186
187 typedef void ( System_wrapper::*createSingletons_function_type )( ) ;
188
189 System_exposer.def(
190 "createSingletons"
191 , createSingletons_function_type( &System_wrapper::createSingletons )
192 , "! create the other core system singleton objects (except the logger)\n" );
193
194 }
195 { //::CEGUI::System::destroy
196
197 typedef void ( *destroy_function_type )( );
198
199 System_exposer.def(
200 "destroy"
201 , destroy_function_type( &::CEGUI::System::destroy )
202 , "! Destroy the System object.\n" );
203
204 }
205 { //::CEGUI::System::destroyGUIContext
206
207 typedef void ( ::CEGUI::System::*destroyGUIContext_function_type )( ::CEGUI::GUIContext & ) ;
208
209 System_exposer.def(
210 "destroyGUIContext"
211 , destroyGUIContext_function_type( &::CEGUI::System::destroyGUIContext )
212 , ( bp::arg("context") ) );
213
214 }
215 { //::CEGUI::System::destroyRegexMatcher
216
217 typedef void ( ::CEGUI::System::*destroyRegexMatcher_function_type )( ::CEGUI::RegexMatcher * ) const;
218
219 System_exposer.def(
220 "destroyRegexMatcher"
221 , destroyRegexMatcher_function_type( &::CEGUI::System::destroyRegexMatcher )
222 , ( bp::arg("rm") )
223 , "! destroy a RegexMatcher instance returned by System.createRegexMatcher.\n" );
224
225 }
226 { //::CEGUI::System::destroySingletons
227
228 typedef void ( System_wrapper::*destroySingletons_function_type )( ) ;
229
230 System_exposer.def(
231 "destroySingletons"
232 , destroySingletons_function_type( &System_wrapper::destroySingletons )
233 , "! cleanup the core system singleton objects\n" );
234
235 }
236 { //::CEGUI::System::executeScriptFile
237
238 typedef void ( ::CEGUI::System::*executeScriptFile_function_type )( ::CEGUI::String const &,::CEGUI::String const & ) const;
239
240 System_exposer.def(
241 "executeScriptFile"
242 , executeScriptFile_function_type( &::CEGUI::System::executeScriptFile )
243 , ( bp::arg("filename"), bp::arg("resourceGroup")="" )
244 , "*!\n\
245 \n\
246 Execute a script file if possible.\n\
247 \n\
248 @param filename\n\
249 String object holding the filename of the script file that is to be executed\n\
250 \n\
251 @param resourceGroup\n\
252 Resource group identifier to be passed to the ResourceProvider when loading the script file.\n\
253 *\n" );
254
255 }
256 { //::CEGUI::System::executeScriptGlobal
257
258 typedef int ( ::CEGUI::System::*executeScriptGlobal_function_type )( ::CEGUI::String const & ) const;
259
260 System_exposer.def(
261 "executeScriptGlobal"
262 , executeScriptGlobal_function_type( &::CEGUI::System::executeScriptGlobal )
263 , ( bp::arg("function_name") )
264 , "*!\n\
265 \n\
266 Execute a scripted global function if possible. The function should not take any parameters\
267 and should return an integer.\n\
268 \n\
269 @param function_name\n\
270 String object holding the name of the function, in the global script environment, that\n\
271 is to be executed.\n\
272 \n\
273 @return\n\
274 The integer value returned from the script function.\n\
275 *\n" );
276
277 }
278 { //::CEGUI::System::executeScriptString
279
280 typedef void ( ::CEGUI::System::*executeScriptString_function_type )( ::CEGUI::String const & ) const;
281
282 System_exposer.def(
283 "executeScriptString"
284 , executeScriptString_function_type( &::CEGUI::System::executeScriptString )
285 , ( bp::arg("str") )
286 , "*!\n\
287 \n\
288 If possible, execute script code contained in the given CEGUI.String object.\n\
289 \n\
290 @param str\n\
291 String object holding the valid script code that should be executed.\n\
292 \n\
293 @return\n\
294 Nothing.\n\
295 *\n" );
296
297 }
298 { //::CEGUI::System::getClipboard
299
300 typedef ::CEGUI::Clipboard * ( ::CEGUI::System::*getClipboard_function_type )( ) const;
301
302 System_exposer.def(
303 "getClipboard"
304 , getClipboard_function_type( &::CEGUI::System::getClipboard )
305 , bp::return_value_policy< bp::reference_existing_object >()
306 , "*!\n\
307 \n\
308 Retrieves internal CEGUI clipboard, optionally synced with system wide clipboard\n\
309 *\n" );
310
311 }
312 { //::CEGUI::System::getDefaultCustomRenderedStringParser
313
314 typedef ::CEGUI::RenderedStringParser * ( ::CEGUI::System::*getDefaultCustomRenderedStringParser_function_type )( ) const;
315
316 System_exposer.def(
317 "getDefaultCustomRenderedStringParser"
318 , getDefaultCustomRenderedStringParser_function_type( &::CEGUI::System::getDefaultCustomRenderedStringParser )
319 , bp::return_value_policy< bp::reference_existing_object >()
320 , "*!\n\
321 \n\
322 Return pointer to the currently set global default custom\n\
323 RenderedStringParser object.\n\
324 \n\
325 The returned RenderedStringParser is used for all windows that have\n\
326 parsing enabled and no custom RenderedStringParser set on the window\n\
327 itself.\n\
328 \n\
329 If this global custom RenderedStringParser is set to 0, then all windows\n\
330 with parsing enabled and no custom RenderedStringParser set on the\n\
331 window itself will use the systems BasicRenderedStringParser. \n\
332 *\n" );
333
334 }
335 { //::CEGUI::System::getDefaultGUIContext
336
337 typedef ::CEGUI::GUIContext & ( ::CEGUI::System::*getDefaultGUIContext_function_type )( ) const;
338
339 System_exposer.def(
340 "getDefaultGUIContext"
341 , getDefaultGUIContext_function_type( &::CEGUI::System::getDefaultGUIContext )
342 , bp::return_value_policy< bp::reference_existing_object >() );
343
344 }
345 { //::CEGUI::System::getDefaultImageCodecName
346
347 typedef ::CEGUI::String const & ( *getDefaultImageCodecName_function_type )( );
348
349 System_exposer.def(
350 "getDefaultImageCodecName"
351 , getDefaultImageCodecName_function_type( &::CEGUI::System::getDefaultImageCodecName )
352 , bp::return_value_policy< bp::copy_const_reference >()
353 , "*!\n\
354 \n\
355 Get the name of the default image codec.\n\
356 *\n" );
357
358 }
359 { //::CEGUI::System::getDefaultXMLParserName
360
361 typedef ::CEGUI::String const ( *getDefaultXMLParserName_function_type )( );
362
363 System_exposer.def(
364 "getDefaultXMLParserName"
365 , getDefaultXMLParserName_function_type( &::CEGUI::System::getDefaultXMLParserName )
366 , "*!\n\
367 \n\
368 Return the name of the currently set default xml parser module.\n\
369 \n\
370 @return\n\
371 String holding the currently set default xml parser name. Note that if\n\
372 this name has been changed after instantiating the system, the name\n\
373 returned may not actually correspond to the module in use.\n\
374 *\n" );
375
376 }
377 { //::CEGUI::System::getImageCodec
378
379 typedef ::CEGUI::ImageCodec & ( ::CEGUI::System::*getImageCodec_function_type )( ) const;
380
381 System_exposer.def(
382 "getImageCodec"
383 , getImageCodec_function_type( &::CEGUI::System::getImageCodec )
384 , bp::return_value_policy< bp::reference_existing_object >()
385 , "*!\n\
386 \n\
387 Retrieve the image codec to be used by the system.\n\
388 *\n" );
389
390 }
391 { //::CEGUI::System::getMajorVersion
392
393 typedef unsigned int ( *getMajorVersion_function_type )( );
394
395 System_exposer.def(
396 "getMajorVersion"
397 , getMajorVersion_function_type( &::CEGUI::System::getMajorVersion )
398 , "*!\n\
399 \n\
400 Retrieves CEGUI's major version as an integer\n\
401 \n\
402 \note\n\
403 APIheaders major version is a macro called CEGUI_MAJOR_VERSION,\n\
404 this returns the version your application is linking to\n\
405 *\n" );
406
407 }
408 { //::CEGUI::System::getMinorVersion
409
410 typedef unsigned int ( *getMinorVersion_function_type )( );
411
412 System_exposer.def(
413 "getMinorVersion"
414 , getMinorVersion_function_type( &::CEGUI::System::getMinorVersion )
415 , "*!\n\
416 \n\
417 Retrieves CEGUI's minor version as an integer\n\
418 \n\
419 \note\n\
420 APIheaders minor version is a macro called CEGUI_MINOR_VERSION,\n\
421 this returns the version your application is linking to\n\
422 *\n" );
423
424 }
425 { //::CEGUI::System::getPatchVersion
426
427 typedef unsigned int ( *getPatchVersion_function_type )( );
428
429 System_exposer.def(
430 "getPatchVersion"
431 , getPatchVersion_function_type( &::CEGUI::System::getPatchVersion )
432 , "*!\n\
433 \n\
434 Retrieves CEGUI's patch version as an integer\n\
435 \n\
436 \note\n\
437 APIheaders patch version is a macro called CEGUI_PATCH_VERSION,\n\
438 this returns the version your application is linking to\n\
439 *\n" );
440
441 }
442 { //::CEGUI::System::getRenderer
443
444 typedef ::CEGUI::Renderer * ( ::CEGUI::System::*getRenderer_function_type )( ) const;
445
446 System_exposer.def(
447 "getRenderer"
448 , getRenderer_function_type( &::CEGUI::System::getRenderer )
449 , bp::return_value_policy< bp::reference_existing_object >()
450 , "*!\n\
451 \n\
452 Return a pointer to the Renderer object being used by the system\n\
453 \n\
454 @return\n\
455 Pointer to the Renderer object used by the system.\n\
456 *\n" );
457
458 }
459 { //::CEGUI::System::getResourceProvider
460
461 typedef ::CEGUI::ResourceProvider * ( ::CEGUI::System::*getResourceProvider_function_type )( ) const;
462
463 System_exposer.def(
464 "getResourceProvider"
465 , getResourceProvider_function_type( &::CEGUI::System::getResourceProvider )
466 , bp::return_value_policy< bp::reference_existing_object >()
467 , "*!\n\
468 \n\
469 Return a pointer to the ResourceProvider being used within the GUI system.\n\
470 \n\
471 @return\n\
472 Pointer to a ResourceProvider based object.\n\
473 *\n" );
474
475 }
476 { //::CEGUI::System::getScriptingModule
477
478 typedef ::CEGUI::ScriptModule * ( ::CEGUI::System::*getScriptingModule_function_type )( ) const;
479
480 System_exposer.def(
481 "getScriptingModule"
482 , getScriptingModule_function_type( &::CEGUI::System::getScriptingModule )
483 , bp::return_value_policy< bp::reference_existing_object >()
484 , "*!\n\
485 \n\
486 Return a pointer to the ScriptModule being used for scripting within the GUI system.\n\
487 \n\
488 @return\n\
489 Pointer to a ScriptModule based object.\n\
490 *\n" );
491
492 }
493 { //::CEGUI::System::getSingleton
494
495 typedef ::CEGUI::System & ( *getSingleton_function_type )( );
496
497 System_exposer.def(
498 "getSingleton"
499 , getSingleton_function_type( &::CEGUI::System::getSingleton )
500 , bp::return_value_policy< bp::reference_existing_object >()
501 , "*!\n\
502 \n\
503 Return singleton System object\n\
504 \n\
505 @return\n\
506 Singleton System object\n\
507 *\n" );
508
509 }
510 { //::CEGUI::System::getVerboseVersion
511
512 typedef ::CEGUI::String const & ( *getVerboseVersion_function_type )( );
513
514 System_exposer.def(
515 "getVerboseVersion"
516 , getVerboseVersion_function_type( &::CEGUI::System::getVerboseVersion )
517 , bp::return_value_policy< bp::copy_const_reference >()
518 , "*!\n\
519 \n\
520 Retrieves CEGUI's verbose version, includes info about compiler, platform, etc...\n\
521 \n\
522 \note\n\
523 APIheaders verbose version can be constructed using various compiler specific macros,\n\
524 this returns the version your application is linking to\n\
525 *\n" );
526
527 }
528 { //::CEGUI::System::getVersion
529
530 typedef ::CEGUI::String const & ( *getVersion_function_type )( );
531
532 System_exposer.def(
533 "getVersion"
534 , getVersion_function_type( &::CEGUI::System::getVersion )
535 , bp::return_value_policy< bp::copy_const_reference >()
536 , "*!\n\
537 \n\
538 Retrieves CEGUI's short version (1.2.3 for example)\n\
539 \n\
540 \note\n\
541 APIheaders version can be constructed using CEGUI_*_VERSION macros,\n\
542 this returns the version your application is linking to\n\
543 *\n" );
544
545 }
546 { //::CEGUI::System::getXMLParser
547
548 typedef ::CEGUI::XMLParser * ( ::CEGUI::System::*getXMLParser_function_type )( ) const;
549
550 System_exposer.def(
551 "getXMLParser"
552 , getXMLParser_function_type( &::CEGUI::System::getXMLParser )
553 , bp::return_value_policy< bp::reference_existing_object >()
554 , "*!\n\
555 \n\
556 Return the XMLParser object.\n\
557 *\n" );
558
559 }
560 { //::CEGUI::System::injectTimePulse
561
562 typedef bool ( ::CEGUI::System::*injectTimePulse_function_type )( float ) ;
563
564 System_exposer.def(
565 "injectTimePulse"
566 , injectTimePulse_function_type( &::CEGUI::System::injectTimePulse )
567 , ( bp::arg("timeElapsed") )
568 , "! call this to ensure system-level time based updates occur.\n" );
569
570 }
571 { //::CEGUI::System::invalidateAllCachedRendering
572
573 typedef void ( ::CEGUI::System::*invalidateAllCachedRendering_function_type )( ) ;
574
575 System_exposer.def(
576 "invalidateAllCachedRendering"
577 , invalidateAllCachedRendering_function_type( &::CEGUI::System::invalidateAllCachedRendering )
578 , "*!\n\
579 \n\
580 Invalidate all imagery and geometry caches for CEGUI managed elements.\n\
581 \n\
582 This function will invalidate the caches used for both imagery and\n\
583 geometry for all content that is managed by the core CEGUI manager\n\
584 objects, causing a full and total redraw of that content. This\n\
585 includes Window object's cached geometry, rendering surfaces and\n\
586 rendering windows and the mouse pointer geometry.\n\
587 *\n" );
588
589 }
590 { //::CEGUI::System::invalidateAllWindows
591
592 typedef void ( System_wrapper::*invalidateAllWindows_function_type )( ) ;
593
594 System_exposer.def(
595 "invalidateAllWindows"
596 , invalidateAllWindows_function_type( &System_wrapper::invalidateAllWindows )
597 , "! invalidate all windows and any rendering surfaces they may be using.\n" );
598
599 }
600 { //::CEGUI::System::notifyDisplaySizeChanged
601
602 typedef void ( ::CEGUI::System::*notifyDisplaySizeChanged_function_type )( ::CEGUI::Sizef const & ) ;
603
604 System_exposer.def(
605 "notifyDisplaySizeChanged"
606 , notifyDisplaySizeChanged_function_type( &::CEGUI::System::notifyDisplaySizeChanged )
607 , ( bp::arg("new_size") )
608 , "*!\n\
609 \n\
610 Notification function to be called when the main display changes size.\n\
611 Client code should call this function when the host window changes size,\n\
612 or if the display resolution is changed in full-screen mode.\n\
613 \n\
614 Calling this function ensures that any other parts of the system that\n\
615 need to know about display size changes are notified. This affects\n\
616 things such as the MouseCursor default constraint area, and also the\n\
617 auto-scale functioning of Imagesets and Fonts.\n\
618 \n\
619 \note\n\
620 This function will also fire the System.EventDisplaySizeChanged event.\n\
621 \n\
622 @param new_size\n\
623 Size object describing the new display size in pixels.\n\
624 *\n" );
625
626 }
627 { //::CEGUI::System::outputLogHeader
628
629 typedef void ( System_wrapper::*outputLogHeader_function_type )( ) ;
630
631 System_exposer.def(
632 "outputLogHeader"
633 , outputLogHeader_function_type( &System_wrapper::outputLogHeader )
634 , "! output the standard log header\n" );
635
636 }
637 { //::CEGUI::System::performVersionTest
638
639 typedef void ( *performVersionTest_function_type )( int const,int const,::CEGUI::String const & );
640
641 System_exposer.def(
642 "performVersionTest"
643 , performVersionTest_function_type( &::CEGUI::System::performVersionTest )
644 , ( bp::arg("expected"), bp::arg("received"), bp::arg("func") )
645 , "! Internal CEGUI version validation function.\n" );
646
647 }
648 { //::CEGUI::System::renderAllGUIContexts
649
650 typedef void ( ::CEGUI::System::*renderAllGUIContexts_function_type )( ) ;
651
652 System_exposer.def(
653 "renderAllGUIContexts"
654 , renderAllGUIContexts_function_type( &::CEGUI::System::renderAllGUIContexts )
655 , "*!\n\
656 \n\
657 Depending upon the internal state, for each GUIContext this may either\n\
658 re-use cached rendering from last time or trigger a full re-draw of all\n\
659 elements.\n\
660 *\n" );
661
662 }
663 { //::CEGUI::System::setDefaultCustomRenderedStringParser
664
665 typedef void ( ::CEGUI::System::*setDefaultCustomRenderedStringParser_function_type )( ::CEGUI::RenderedStringParser * ) ;
666
667 System_exposer.def(
668 "setDefaultCustomRenderedStringParser"
669 , setDefaultCustomRenderedStringParser_function_type( &::CEGUI::System::setDefaultCustomRenderedStringParser )
670 , ( bp::arg("parser") )
671 , "*!\n\
672 \n\
673 Set the global default custom RenderedStringParser object. This change\n\
674 is reflected the next time an affected window reparses it's text. This\n\
675 may be set to 0 for no system wide custom parser (which is the default).\n\
676 \n\
677 The set RenderedStringParser is used for all windows that have\n\
678 parsing enabled and no custom RenderedStringParser set on the window\n\
679 itself.\n\
680 \n\
681 If this global custom RenderedStringParser is set to 0, then all windows\n\
682 with parsing enabled and no custom RenderedStringParser set on the\n\
683 window itself will use the systems BasicRenderedStringParser. \n\
684 *\n" );
685
686 }
687 { //::CEGUI::System::setDefaultImageCodecName
688
689 typedef void ( *setDefaultImageCodecName_function_type )( ::CEGUI::String const & );
690
691 System_exposer.def(
692 "setDefaultImageCodecName"
693 , setDefaultImageCodecName_function_type( &::CEGUI::System::setDefaultImageCodecName )
694 , ( bp::arg("codecName") )
695 , "*!\n\
696 \n\
697 Set the name of the default image codec to be used.\n\
698 *\n" );
699
700 }
701 { //::CEGUI::System::setDefaultXMLParserName
702
703 typedef void ( *setDefaultXMLParserName_function_type )( ::CEGUI::String const & );
704
705 System_exposer.def(
706 "setDefaultXMLParserName"
707 , setDefaultXMLParserName_function_type( &::CEGUI::System::setDefaultXMLParserName )
708 , ( bp::arg("parserName") )
709 , "*!\n\
710 \n\
711 Static member to set the name of the default XML parser module that\n\
712 should be used.\n\
713 \n\
714 If you want to modify the default parser from the one compiled in, you\n\
715 need to call this static member prior to instantiating the main\n\
716 CEGUI.System object.\n\
717 \n\
718 Note that calling this member to change the name of the default module\n\
719 after CEGUI.System, and therefore the default xml parser, has been\n\
720 created will have no real effect - the default parser name will be\n\
721 updated, though no actual changes to the xml parser module will occur.\n\
722 \n\
723 The built-in options for this are:\n\
724 - XercesParser\n\
725 - ExpatParser\n\
726 - LibxmlParser\n\
727 - TinyXMLParser\n\
728 \n\
729 Whether these are actually available, depends upon how you built the\n\
730 system. If you have some custom parser, you can provide the name of\n\
731 that here to have it used as the default, though note that the\n\
732 final filename of the parser module should be of the form:\n\
733 \n\
734 [prefix]CEGUI[parserName][suffix]\n\
735 \n\
736 where:\n\
737 - [prefix] is some optional prefix; like 'lib' on linux.\n\
738 - CEGUI is a required prefix.\n\
739 - [parserName] is the name of the parser, as supplied to this function.\n\
740 - [suffix] is the filename suffix, like .dll or .so\n\
741 \n\
742 Final module filenames are, thus, of the form:\n\
743 - CEGUIXercesParser.dll\n\
744 - libCEGUIXercesParser.so\n\
745 \n\
746 @param parserName\n"
747 " String describing the name of the xml parser module to be used as the\n\
748 default.\n\
749 \n\
750 @return\n\
751 Nothing.\n\
752 *\n\
753 " );
754
755 }
756 { //::CEGUI::System::setImageCodec
757
758 typedef void ( ::CEGUI::System::*setImageCodec_function_type )( ::CEGUI::String const & ) ;
759
760 System_exposer.def(
761 "setImageCodec"
762 , setImageCodec_function_type( &::CEGUI::System::setImageCodec )
763 , ( bp::arg("codecName") )
764 , "*!\n\
765 \n\
766 Set the image codec to be used by the system.\n\
767 *\n" );
768
769 }
770 { //::CEGUI::System::setImageCodec
771
772 typedef void ( ::CEGUI::System::*setImageCodec_function_type )( ::CEGUI::ImageCodec & ) ;
773
774 System_exposer.def(
775 "setImageCodec"
776 , setImageCodec_function_type( &::CEGUI::System::setImageCodec )
777 , ( bp::arg("codec") )
778 , "*!\n\
779 \n\
780 Set the image codec to use from an existing image codec.\n\
781 \n\
782 In this case the renderer does not take the ownership of the image codec\n\
783 object.\n\
784 \n\
785 @param codec\n\
786 The ImageCodec object to be used.\n\
787 *\n" );
788
789 }
790 { //::CEGUI::System::setScriptingModule
791
792 typedef void ( ::CEGUI::System::*setScriptingModule_function_type )( ::CEGUI::ScriptModule * ) ;
793
794 System_exposer.def(
795 "setScriptingModule"
796 , setScriptingModule_function_type( &::CEGUI::System::setScriptingModule )
797 , ( bp::arg("scriptModule") )
798 , "*!\n\
799 \n\
800 Set the ScriptModule to be used for scripting within the GUI system.\n\
801 \n\
802 @param scriptModule\n\
803 Pointer to a ScriptModule based object, or 0 for none (be careful!)\n\
804 \n\
805 @return\n\
806 Nothing\n\
807 *\n" );
808
809 }
810 { //::CEGUI::System::setXMLParser
811
812 typedef void ( ::CEGUI::System::*setXMLParser_function_type )( ::CEGUI::String const & ) ;
813
814 System_exposer.def(
815 "setXMLParser"
816 , setXMLParser_function_type( &::CEGUI::System::setXMLParser )
817 , ( bp::arg("parserName") )
818 , "*!\n\
819 \n\
820 Set a new XML parser module to be used.\n\
821 \n\
822 The current XMLParser will be cleaned up and, if owned by the system,\n\
823 also deleted, as will any dynamically loaded module associated with the\n\
824 XMLParser object. The newly created XMLParser object, and the\n\
825 associated module will be owned by the system.\n\
826 \n\
827 @param parserName\n\
828 String object describing the name of the XML parser module to be used.\n\
829 *\n" );
830
831 }
832 { //::CEGUI::System::setXMLParser
833
834 typedef void ( ::CEGUI::System::*setXMLParser_function_type )( ::CEGUI::XMLParser * ) ;
835
836 System_exposer.def(
837 "setXMLParser"
838 , setXMLParser_function_type( &::CEGUI::System::setXMLParser )
839 , ( bp::arg("parser") )
840 , "*!\n\
841 \n\
842 Sets the XMLParser object to be used by the system.\n\
843 \n\
844 The current XMLParser will be cleaned up and, if owned by the system,\n\
845 also deleted, as will any dynamically loaded module associated with the\n\
846 XMLParser object.\n\
847 \n\
848 If the argument passed in the parser parameter is 0, the system will\n\
849 cleanup any existing parser as described above, and revert to using\n\
850 the parser provided by the default module (see getDefaultXMLParserName\n\
851 and setDefaultXMLParserName).\n\
852 \n\
853 @param parser\n\
854 Pointer to the XMLParser object to be used by the system, or 0 to cause\n\
855 the system to initialise a default parser.\n\
856 *\n" );
857
858 }
859 { //::CEGUI::System::setupImageCodec
860
861 typedef void ( System_wrapper::*setupImageCodec_function_type )( ::CEGUI::String const & ) ;
862
863 System_exposer.def(
864 "setupImageCodec"
865 , setupImageCodec_function_type( &System_wrapper::setupImageCodec )
866 , ( bp::arg("codecName") )
867 , "! setup image codec \n" );
868
869 }
870 { //::CEGUI::System::setupXMLParser
871
872 typedef void ( System_wrapper::*setupXMLParser_function_type )( ) ;
873
874 System_exposer.def(
875 "setupXMLParser"
876 , setupXMLParser_function_type( &System_wrapper::setupXMLParser )
877 , "! handle creation and initialisation of the XML parser.\n" );
878
879 }
880 System_exposer.add_static_property( "EventDisplaySizeChanged"
881 , bp::make_getter( &CEGUI::System::EventDisplaySizeChanged
882 , bp::return_value_policy< bp::return_by_value >() ) );
883 System_exposer.add_static_property( "EventRenderedStringParserChanged"
884 , bp::make_getter( &CEGUI::System::EventRenderedStringParserChanged
885 , bp::return_value_policy< bp::return_by_value >() ) );
886 { //::CEGUI::EventSet::fireEvent
887
888 typedef void ( ::CEGUI::EventSet::*fireEvent_function_type )( ::CEGUI::String const &,::CEGUI::EventArgs &,::CEGUI::String const & ) ;
889 typedef void ( System_wrapper::*default_fireEvent_function_type )( ::CEGUI::String const &,::CEGUI::EventArgs &,::CEGUI::String const & ) ;
890
891 System_exposer.def(
892 "fireEvent"
893 , fireEvent_function_type(&::CEGUI::EventSet::fireEvent)
894 , default_fireEvent_function_type(&System_wrapper::default_fireEvent)
895 , ( bp::arg("name"), bp::arg("args"), bp::arg("eventNamespace")="" ) );
896
897 }
898 { //::CEGUI::EventSet::fireEvent_impl
899
900 typedef void ( System_wrapper::*fireEvent_impl_function_type )( ::CEGUI::String const &,::CEGUI::EventArgs & ) ;
901
902 System_exposer.def(
903 "fireEvent_impl"
904 , fireEvent_impl_function_type( &System_wrapper::fireEvent_impl )
905 , ( bp::arg("name"), bp::arg("args") )
906 , "! Implementation event firing member\n" );
907
908 }
909 { //::CEGUI::EventSet::getScriptModule
910
911 typedef ::CEGUI::ScriptModule * ( System_wrapper::*getScriptModule_function_type )( ) const;
912
913 System_exposer.def(
914 "getScriptModule"
915 , getScriptModule_function_type( &System_wrapper::getScriptModule )
916 , bp::return_value_policy< bp::reference_existing_object >()
917 , "! Implementation event firing member\n\
918 ! Helper to return the script module pointer or throw.\n" );
919
920 }
921 { //::CEGUI::EventSet::subscribeScriptedEvent
922
923 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( ::CEGUI::EventSet::*subscribeScriptedEvent_function_type )( ::CEGUI::String const &,::CEGUI::String const & ) ;
924 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( System_wrapper::*default_subscribeScriptedEvent_function_type )( ::CEGUI::String const &,::CEGUI::String const & ) ;
925
926 System_exposer.def(
927 "subscribeScriptedEvent"
928 , subscribeScriptedEvent_function_type(&::CEGUI::EventSet::subscribeScriptedEvent)
929 , default_subscribeScriptedEvent_function_type(&System_wrapper::default_subscribeScriptedEvent)
930 , ( bp::arg("name"), bp::arg("subscriber_name") ) );
931
932 }
933 { //::CEGUI::EventSet::subscribeScriptedEvent
934
935 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( ::CEGUI::EventSet::*subscribeScriptedEvent_function_type )( ::CEGUI::String const &,unsigned int,::CEGUI::String const & ) ;
936 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( System_wrapper::*default_subscribeScriptedEvent_function_type )( ::CEGUI::String const &,unsigned int,::CEGUI::String const & ) ;
937
938 System_exposer.def(
939 "subscribeScriptedEvent"
940 , subscribeScriptedEvent_function_type(&::CEGUI::EventSet::subscribeScriptedEvent)
941 , default_subscribeScriptedEvent_function_type(&System_wrapper::default_subscribeScriptedEvent)
942 , ( bp::arg("name"), bp::arg("group"), bp::arg("subscriber_name") ) );
943
944 }
945 System_exposer.staticmethod( "create" );
946 System_exposer.staticmethod( "destroy" );
947 System_exposer.staticmethod( "getDefaultImageCodecName" );
948 System_exposer.staticmethod( "getDefaultXMLParserName" );
949 System_exposer.staticmethod( "getMajorVersion" );
950 System_exposer.staticmethod( "getMinorVersion" );
951 System_exposer.staticmethod( "getPatchVersion" );
952 System_exposer.staticmethod( "getSingleton" );
953 System_exposer.staticmethod( "getVerboseVersion" );
954 System_exposer.staticmethod( "getVersion" );
955 System_exposer.staticmethod( "performVersionTest" );
956 System_exposer.staticmethod( "setDefaultImageCodecName" );
957 System_exposer.staticmethod( "setDefaultXMLParserName" );
958 }
959
960 }
961