Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2913 was 2710, checked in by rgrieder, 16 years ago

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

  • Property svn:eol-style set to native
File size: 1.4 KB
RevLine 
[2608]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.