1 // This file has been generated by Py++.
2
3 #include "boost/python.hpp"
4 #include "generators/include/python_CEGUI.h"
5 #include "BoundSlot.pypp.hpp"
6
7 namespace bp = boost::python;
8
register_BoundSlot_class()9 void register_BoundSlot_class(){
10
11 { //::CEGUI::BoundSlot
12 typedef bp::class_< CEGUI::BoundSlot > BoundSlot_exposer_t;
13 BoundSlot_exposer_t BoundSlot_exposer = BoundSlot_exposer_t( "BoundSlot", bp::init< unsigned int, CEGUI::SubscriberSlot const &, CEGUI::Event & >(( bp::arg("group"), bp::arg("subscriber"), bp::arg("event") ), "*!\n\
14 \n\
15 Constructor.\n\
16 \n\
17 @param group\n\
18 The subscriber group this slot is attached to.\n\
19 \n\
20 @param subscriber\n\
21 The actual slot object that is controlling this connection binding.\n\
22 \n\
23 @param event\n\
24 The Event object to which the subscribed slot is attached.\n\
25 *\n") );
26 bp::scope BoundSlot_scope( BoundSlot_exposer );
27 BoundSlot_exposer.def( bp::init< CEGUI::BoundSlot const & >(( bp::arg("other") ), "*!\n\
28 \n\
29 Copy constructor.\n\
30 *\n") );
31 { //::CEGUI::BoundSlot::connected
32
33 typedef bool ( ::CEGUI::BoundSlot::*connected_function_type )( ) const;
34
35 BoundSlot_exposer.def(
36 "connected"
37 , connected_function_type( &::CEGUI::BoundSlot::connected )
38 , "*!\n\
39 \n\
40 Returns whether the slot which this object is tracking is still\n\
41 internally connected to the signal event mechanism.\n\
42 \n\
43 @return\n\
44 - true to indicate that the slot is still connected.\n\
45 - false to indicate that the slot has been disconnected.\n\
46 *\n" );
47
48 }
49 { //::CEGUI::BoundSlot::disconnect
50
51 typedef void ( ::CEGUI::BoundSlot::*disconnect_function_type )( ) ;
52
53 BoundSlot_exposer.def(
54 "disconnect"
55 , disconnect_function_type( &::CEGUI::BoundSlot::disconnect )
56 , "*!\n\
57 \n\
58 Disconnects the slot. Once disconnected, the slot will no longer be\n\
59 called when the associated signal event fires. There is no way to\n\
60 re-connect a slot once it has been disconnected, a new subscription to\n\
61 the signal event is required.\n\
62 \n\
63 @return\n\
64 Nothing.\n\
65 *\n" );
66
67 }
68 BoundSlot_exposer.def( bp::self != bp::self );
69 BoundSlot_exposer.def( bp::self == bp::self );
70 }
71
72 }
73