1 // This file has been generated by Py++.
2
3 #include "boost/python.hpp"
4 #include "generators/include/python_CEGUI.h"
5 #include "ResourceEventSet.pypp.hpp"
6
7 namespace bp = boost::python;
8
9 struct ResourceEventSet_wrapper : CEGUI::ResourceEventSet, bp::wrapper< CEGUI::ResourceEventSet > {
10
ResourceEventSet_wrapperResourceEventSet_wrapper11 ResourceEventSet_wrapper()
12 : CEGUI::ResourceEventSet()
13 , bp::wrapper< CEGUI::ResourceEventSet >(){
14 // null constructor
15
16 }
17
fireEventResourceEventSet_wrapper18 virtual void fireEvent( ::CEGUI::String const & name, ::CEGUI::EventArgs & args, ::CEGUI::String const & eventNamespace="" ) {
19 if( bp::override func_fireEvent = this->get_override( "fireEvent" ) )
20 func_fireEvent( boost::ref(name), boost::ref(args), boost::ref(eventNamespace) );
21 else{
22 this->CEGUI::EventSet::fireEvent( boost::ref(name), boost::ref(args), boost::ref(eventNamespace) );
23 }
24 }
25
default_fireEventResourceEventSet_wrapper26 void default_fireEvent( ::CEGUI::String const & name, ::CEGUI::EventArgs & args, ::CEGUI::String const & eventNamespace="" ) {
27 CEGUI::EventSet::fireEvent( boost::ref(name), boost::ref(args), boost::ref(eventNamespace) );
28 }
29
fireEvent_implResourceEventSet_wrapper30 void fireEvent_impl( ::CEGUI::String const & name, ::CEGUI::EventArgs & args ){
31 CEGUI::EventSet::fireEvent_impl( boost::ref(name), boost::ref(args) );
32 }
33
getScriptModuleResourceEventSet_wrapper34 ::CEGUI::ScriptModule * getScriptModule( ) const {
35 return CEGUI::EventSet::getScriptModule( );
36 }
37
subscribeScriptedEventResourceEventSet_wrapper38 virtual ::CEGUI::RefCounted< CEGUI::BoundSlot > subscribeScriptedEvent( ::CEGUI::String const & name, ::CEGUI::String const & subscriber_name ) {
39 if( bp::override func_subscribeScriptedEvent = this->get_override( "subscribeScriptedEvent" ) )
40 return func_subscribeScriptedEvent( boost::ref(name), boost::ref(subscriber_name) );
41 else{
42 return this->CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), boost::ref(subscriber_name) );
43 }
44 }
45
default_subscribeScriptedEventResourceEventSet_wrapper46 ::CEGUI::RefCounted< CEGUI::BoundSlot > default_subscribeScriptedEvent( ::CEGUI::String const & name, ::CEGUI::String const & subscriber_name ) {
47 return CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), boost::ref(subscriber_name) );
48 }
49
subscribeScriptedEventResourceEventSet_wrapper50 virtual ::CEGUI::RefCounted< CEGUI::BoundSlot > subscribeScriptedEvent( ::CEGUI::String const & name, unsigned int group, ::CEGUI::String const & subscriber_name ) {
51 if( bp::override func_subscribeScriptedEvent = this->get_override( "subscribeScriptedEvent" ) )
52 return func_subscribeScriptedEvent( boost::ref(name), group, boost::ref(subscriber_name) );
53 else{
54 return this->CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), group, boost::ref(subscriber_name) );
55 }
56 }
57
default_subscribeScriptedEventResourceEventSet_wrapper58 ::CEGUI::RefCounted< CEGUI::BoundSlot > default_subscribeScriptedEvent( ::CEGUI::String const & name, unsigned int group, ::CEGUI::String const & subscriber_name ) {
59 return CEGUI::EventSet::subscribeScriptedEvent( boost::ref(name), group, boost::ref(subscriber_name) );
60 }
61
62 };
63
register_ResourceEventSet_class()64 void register_ResourceEventSet_class(){
65
66 { //::CEGUI::ResourceEventSet
67 typedef bp::class_< ResourceEventSet_wrapper, bp::bases< CEGUI::EventSet >, boost::noncopyable > ResourceEventSet_exposer_t;
68 ResourceEventSet_exposer_t ResourceEventSet_exposer = ResourceEventSet_exposer_t( "ResourceEventSet", "! implementation class to gather EventSet parts for all template instances.\n" );
69 bp::scope ResourceEventSet_scope( ResourceEventSet_exposer );
70 ResourceEventSet_exposer.add_static_property( "EventResourceCreated"
71 , bp::make_getter( &CEGUI::ResourceEventSet::EventResourceCreated
72 , bp::return_value_policy< bp::return_by_value >() ) );
73 ResourceEventSet_exposer.add_static_property( "EventResourceDestroyed"
74 , bp::make_getter( &CEGUI::ResourceEventSet::EventResourceDestroyed
75 , bp::return_value_policy< bp::return_by_value >() ) );
76 ResourceEventSet_exposer.add_static_property( "EventResourceReplaced"
77 , bp::make_getter( &CEGUI::ResourceEventSet::EventResourceReplaced
78 , bp::return_value_policy< bp::return_by_value >() ) );
79 { //::CEGUI::EventSet::fireEvent
80
81 typedef void ( ::CEGUI::EventSet::*fireEvent_function_type )( ::CEGUI::String const &,::CEGUI::EventArgs &,::CEGUI::String const & ) ;
82 typedef void ( ResourceEventSet_wrapper::*default_fireEvent_function_type )( ::CEGUI::String const &,::CEGUI::EventArgs &,::CEGUI::String const & ) ;
83
84 ResourceEventSet_exposer.def(
85 "fireEvent"
86 , fireEvent_function_type(&::CEGUI::EventSet::fireEvent)
87 , default_fireEvent_function_type(&ResourceEventSet_wrapper::default_fireEvent)
88 , ( bp::arg("name"), bp::arg("args"), bp::arg("eventNamespace")="" ) );
89
90 }
91 { //::CEGUI::EventSet::fireEvent_impl
92
93 typedef void ( ResourceEventSet_wrapper::*fireEvent_impl_function_type )( ::CEGUI::String const &,::CEGUI::EventArgs & ) ;
94
95 ResourceEventSet_exposer.def(
96 "fireEvent_impl"
97 , fireEvent_impl_function_type( &ResourceEventSet_wrapper::fireEvent_impl )
98 , ( bp::arg("name"), bp::arg("args") )
99 , "! Implementation event firing member\n" );
100
101 }
102 { //::CEGUI::EventSet::getScriptModule
103
104 typedef ::CEGUI::ScriptModule * ( ResourceEventSet_wrapper::*getScriptModule_function_type )( ) const;
105
106 ResourceEventSet_exposer.def(
107 "getScriptModule"
108 , getScriptModule_function_type( &ResourceEventSet_wrapper::getScriptModule )
109 , bp::return_value_policy< bp::reference_existing_object >()
110 , "! Implementation event firing member\n\
111 ! Helper to return the script module pointer or throw.\n" );
112
113 }
114 { //::CEGUI::EventSet::subscribeScriptedEvent
115
116 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( ::CEGUI::EventSet::*subscribeScriptedEvent_function_type )( ::CEGUI::String const &,::CEGUI::String const & ) ;
117 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( ResourceEventSet_wrapper::*default_subscribeScriptedEvent_function_type )( ::CEGUI::String const &,::CEGUI::String const & ) ;
118
119 ResourceEventSet_exposer.def(
120 "subscribeScriptedEvent"
121 , subscribeScriptedEvent_function_type(&::CEGUI::EventSet::subscribeScriptedEvent)
122 , default_subscribeScriptedEvent_function_type(&ResourceEventSet_wrapper::default_subscribeScriptedEvent)
123 , ( bp::arg("name"), bp::arg("subscriber_name") ) );
124
125 }
126 { //::CEGUI::EventSet::subscribeScriptedEvent
127
128 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( ::CEGUI::EventSet::*subscribeScriptedEvent_function_type )( ::CEGUI::String const &,unsigned int,::CEGUI::String const & ) ;
129 typedef ::CEGUI::RefCounted< CEGUI::BoundSlot > ( ResourceEventSet_wrapper::*default_subscribeScriptedEvent_function_type )( ::CEGUI::String const &,unsigned int,::CEGUI::String const & ) ;
130
131 ResourceEventSet_exposer.def(
132 "subscribeScriptedEvent"
133 , subscribeScriptedEvent_function_type(&::CEGUI::EventSet::subscribeScriptedEvent)
134 , default_subscribeScriptedEvent_function_type(&ResourceEventSet_wrapper::default_subscribeScriptedEvent)
135 , ( bp::arg("name"), bp::arg("group"), bp::arg("subscriber_name") ) );
136
137 }
138 }
139
140 }
141