Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/src/ceguilua/ceguilua-0.6.2/package/EventSet.pkg @ 2608

Last change on this file since 2608 was 2608, checked in by rgrieder, 15 years ago

Large cleanup in CEGUILua:

  • Removed the heavy 1.7MB bind files and added the small pkg files from the CEGUI source instead
  • Those pkg files get copied version incrementally (starting with 0.5.0) to the binary dir. That saves a lot of files when having 4 different versions.
  • Added support for CEGUI 0.6.0 and 0.6.2
  • Added library info files
  • CEGUILua 0.5.0 finally supports Lua 5.1 too That means all version support both Lua 5.0 and 5.1
  • Added unified diffs with the changes to the CEGUILua source
  • 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.