Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/ceguilua/ceguilua-0.6.2/package/EventSet.pkg @ 5738

Last change on this file since 5738 was 5738, checked in by landauf, 15 years ago

merged libraries2 back to trunk

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1/************************************************************************
2    Event
3*************************************************************************/
4class Event
5{
6    string getName() const;
7};
8
9class EventConnection
10{
11    bool connected() const;
12    void disconnect();
13};
14
15
16/***********************************************************************
17        EventSet
18***********************************************************************/
19class EventSet
20{
21        void addEvent(string name);
22        void removeEvent(string name);
23        void removeAllEvents();
24        bool isEventPresent(string name);
25
26    tolua_throws|CEGUI::UnknownObjectException,error| tolua_outside EventConnection LuaFunctorSubscribeEvent @ subscribeEvent(string name, lua_Object funcIndex, lua_Object selfIndex=LUA_NOREF, lua_Object error_handler = LUA_NOREF, lua_State*);
27
28        tolua_throws|CEGUI::UnknownObjectException,error| EventConnection subscribeScriptedEvent @ subscribeEvent(string name, string callback_name);
29
30        void fireEvent(string name, EventArgs& args, string eventnamespace="");
31
32        bool isMuted() const;
33        void setMutedState(bool setting);
34
35    tolua_outside EventIterator ceguiLua_getEventIterator @ getEventIterator() const;
36};
37
38
39
40/***********************************************************************
41        GlobalEventSet
42***********************************************************************/
43class GlobalEventSet : public EventSet
44{
45        static GlobalEventSet& getSingleton();
46};
Note: See TracBrowser for help on using the repository browser.