#include <wxlstate.h>
Public Member Functions | |
| wxLuaState (bool create=false) | |
| wxLuaState (wxEvtHandler *handler, wxWindowID id=wxID_ANY) | |
| wxLuaState (lua_State *L, int state_type=wxLUASTATE_GETSTATE) | |
| wxLuaState (const wxLuaState &wxlState) | |
| virtual | ~wxLuaState () |
| void | Create (const wxLuaState &wxlState) |
| bool | Create (wxEvtHandler *handler=NULL, wxWindowID id=wxID_ANY) |
| bool | Create (lua_State *L, int state_type=wxLUASTATE_GETSTATE) |
| bool | Ok () const |
| void | Destroy () |
| bool | CloseLuaState (bool force) |
| bool | IsClosing () const |
| lua_State * | GetLuaState () const |
| wxLuaStateRefData * | GetLuaStateRefData () const |
| wxLuaStateData * | GetLuaStateData () const |
| void | SetEventHandler (wxEvtHandler *evtHandler) |
| wxEvtHandler * | GetEventHandler () const |
| void | SetId (wxWindowID id) |
| wxWindowID | GetId () const |
| bool | SendEvent (wxLuaEvent &event) const |
| int | RunFile (const wxString &fileName) |
| int | RunString (const wxString &script, const wxString &name=wxEmptyString) |
| int | RunBuffer (const unsigned char buf[], size_t size, const wxString &name=wxT("= lua")) |
| int | LuaDoString (const wxString &script, const wxString &name=wxEmptyString) |
| int | LuaDoFile (const wxString &filename) |
| int | LuaDoBuffer (const char *buffer, size_t len, const char *name) |
| bool | IsRunning () const |
| int | LuaPCall (int narg, int nresults) |
| bool | SendLuaErrorEvent (int status, int top) |
| wxEventType | GetInEventType () const |
| void | SetInEventType (wxEventType eventType) |
| int | CompileString (const wxString &script, const wxString &name=wxEmptyString, wxString *errMsg=NULL, int *line_num=NULL) |
| int | CompileBuffer (const unsigned char buf[], size_t size, const wxString &name=wxEmptyString, wxString *errMsg=NULL, int *line_num=NULL) |
| void | DebugHookBreak (const wxString &message=wxT("Lua interpreter stopped")) |
| void | ClearDebugHookBreak () |
| bool | GetDebugHookBreak () const |
| wxString | GetDebugHookBreakMessage () const |
| void | SetLuaDebugHook (int hook=LUA_MASKCALL|LUA_MASKRET|LUA_MASKLINE|LUA_MASKCOUNT, int count=1000, int yield_ms=100, bool send_debug_evt=false) |
| int | GetLuaDebugHook () const |
| int | GetLuaDebugHookCount () const |
| int | GetLuaDebugHookYield () const |
| bool | GetLuaDebugHookSendEvt () const |
| unsigned long | GetLastLuaDebugHookTime () const |
| void | SetLastLuaDebugHookTime (unsigned long t) |
| void | RegisterFunction (lua_CFunction func, const char *funcName) |
| wxLUA_UNICODE_ONLY (void RegisterFunction(lua_CFunction func, const wxString &funcName){RegisterFunction(func, wx2lua(funcName));}) bool RegisterBinding(wxLuaBinding *binding) | |
| bool | RegisterBindings () |
| wxLuaBinding * | GetLuaBinding (const wxString &bindingName) const |
| const wxLuaBindClass * | GetBindClass (int iClassTag) const |
| const wxLuaBindClass * | GetBindClass (const char *className) const |
| const wxLuaBindClass * | GetBindClass (const wxLuaBindMethod *wxlMethod) const |
| const wxLuaBindClass * | GetBindClass (const wxLuaBindCFunc *wxlCFunc) const |
| int | IsDerivedType (int wxl_type, int base_wxl_type) const |
| const wxLuaBindEvent * | GetBindEvent (wxEventType eventType) const |
| void | SetCallBaseClassFunction (bool call_base) |
| bool | GetCallBaseClassFunction () |
| void | AddGCObject (wxObject *wxobj) |
| void | AddGCObject (void *obj_ptr, wxObject *wxobj) |
| bool | DeleteGCObject (void *udata, void *obj_ptr, int flags) |
| bool | IsGCObject (void *obj_ptr) const |
| wxArrayString | GetGCObjectInfo () const |
| void | AddTrackedWindow (wxObject *win) |
| void | RemoveTrackedWindow (wxWindow *win) |
| bool | IsTrackedWindow (wxWindow *win, bool check_parents=true) const |
| wxArrayString | GetTrackedWindowInfo () const |
| void | GarbageCollectWindows (bool closeWindows) |
| void | AddTrackedEventCallback (wxLuaEventCallback *callback) |
| bool | RemoveTrackedEventCallback (wxLuaEventCallback *callback) |
| wxArrayString | GetTrackedEventCallbackInfo () const |
| void | AddTrackedWinDestroyCallback (wxLuaWinDestroyCallback *callback) |
| bool | RemoveTrackedWinDestroyCallback (wxLuaWinDestroyCallback *callback) |
| wxArrayString | GetTrackedWinDestroyCallbackInfo () const |
| void | wxlua_Error (const char *errorMsg) const |
| wxLUA_UNICODE_ONLY (void wxlua_Error(const wxString &errorMsg) const {wxlua_Error(wx2lua(errorMsg));}) void *wxlua_ToUserdata(int stack_idx | |
| int | wxluaR_Ref (int stack_idx, void *lightuserdata_reg_key) |
| bool | wxluaR_Unref (int wxlref_index, void *lightuserdata_reg_key) |
| bool | wxluaR_GetRef (int wxlref_index, void *lightuserdata_reg_key) |
| int | wxluaT_NewMetatable (int wxl_type) |
| bool | wxluaT_SetMetatable (int wxl_type) |
| int | wxluaT_Type (int stack_idx) const |
| bool | wxluaT_PushUserDataType (const void *obj_ptr, int wxl_type, bool track) |
| int | IswxLuaType (int luatype, int wxl_type) const |
| bool | IsUserDataType (int stack_idx, int wxl_type) const |
| void * | GetUserDataType (int stack_idx, int iTag) const |
| const char * | GetStringType (int stack_idx) |
| wxString | GetwxStringType (int stack_idx) |
| bool | GetBooleanType (int stack_idx) |
| long | GetIntegerType (int stack_idx) |
| double | GetNumberType (int stack_idx) |
| bool | IsStringType (int stack_idx) const |
| bool | IswxStringType (int stack_idx) const |
| bool | IsBooleanType (int stack_idx) const |
| bool | IsIntegerType (int stack_idx) const |
| bool | IsNumberType (int stack_idx) const |
| wxString * | GetwxStringArray (int stack_idx, int &count) |
| wxLuaSmartwxArrayString | GetwxArrayString (int stack_idx) |
| const char ** | GetCharArray (int stack_idx, int &count) |
| int * | GetIntArray (int stack_idx, int &count) |
| wxLuaSmartwxArrayInt | GetwxArrayInt (int stack_idx) |
| int | PushwxArrayStringTable (const wxArrayString &strArray) |
| int | PushwxArrayIntTable (const wxArrayInt &intArray) |
| wxString | GetwxLuaTypeName (int wxl_type) const |
| bool | SetDerivedMethod (void *obj_ptr, const char *method_name, wxLuaObject *wxlObj) |
| bool | HasDerivedMethod (void *obj_ptr, const char *method_name, bool push_method) const |
| bool | RemoveDerivedMethods (void *obj_ptr) const |
| int | lua_GetTop () const |
| void | lua_SetTop (int index) |
| void | lua_PushValue (int index) |
| void | lua_Remove (int index) |
| void | lua_Pop (int count) |
| void | lua_Insert (int index) |
| void | lua_Replace (int index) |
| int | lua_CheckStack (int size) |
| void | lua_XMove (const wxLuaState &to, int n) |
| bool | lua_IsNumber (int index) const |
| bool | lua_IsString (int index) const |
| bool | lua_IsCFunction (int index) const |
| bool | lua_IsUserdata (int index) const |
| int | lua_Type (int index) const |
| wxString | lua_TypeName (int type) const |
| int | lua_Equal (int index1, int index2) const |
| int | lua_RawEqual (int index1, int index2) const |
| int | lua_LessThan (int index1, int index2) const |
| double | lua_ToNumber (int index) const |
| int | lua_ToInteger (int index) const |
| int | lua_ToBoolean (int index) const |
| const char * | lua_ToString (int index) const |
| wxString | lua_TowxString (int index) const |
| size_t | lua_StrLen (int index) const |
| size_t | luaL_ObjLen (int index) const |
| lua_CFunction | lua_ToCFunction (int index) const |
| void * | lua_ToUserdata (int index) const |
| wxLuaState | lua_ToThread (int index) const |
| const void * | lua_ToPointer (int index) const |
| void | lua_PushNil () |
| void | lua_PushNumber (lua_Number n) |
| void | lua_PushInteger (lua_Integer n) |
| void | lua_PushLString (const char *s, size_t len) |
| void | lua_PushString (const char *s) |
| wxLUA_UNICODE_ONLY (void lua_PushString(const wxString &s){lua_PushString(wx2lua(s));}) void lua_PushCClosure(lua_CFunction fn | |
| void | lua_PushBoolean (bool b) |
| void | lua_PushLightUserdata (void *p) |
| void | lua_GetTable (int idx) |
| void | lua_GetField (int idx, const char *k) |
| wxLUA_UNICODE_ONLY (void lua_GetField(int idx, const wxString &k){lua_GetField(idx, wx2lua(k));}) void lua_RawGet(int idx) | |
| void | lua_RawGeti (int idx, int n) |
| void | lua_CreateTable (int narr, int nrec) |
| void | lua_NewTable () |
| void * | lua_NewUserdata (size_t sz) |
| int | lua_GetMetatable (int objindex) |
| void | lua_GetFenv (int idx) |
| void | lua_SetTable (int idx) |
| void | lua_SetField (int idx, const char *k) |
| wxLUA_UNICODE_ONLY (void lua_SetField(int idx, const wxString &k){lua_SetField(idx, wx2lua(k));}) void lua_RawSet(int idx) | |
| void | lua_RawSeti (int idx, int n) |
| int | lua_SetMetatable (int objindex) |
| int | lua_SetFenv (int idx) |
| void | lua_Call (int nargs, int nresults) |
| int | lua_PCall (int nargs, int nresults, int errfunc) |
| int | lua_CPCall (lua_CFunction func, void *ud) |
| int | lua_Load (lua_Reader reader, void *dt, const char *chunkname) |
| wxLUA_UNICODE_ONLY (int lua_Load(lua_Reader reader, void *dt, const wxString &chunkname){return lua_Load(reader, dt, wx2lua(chunkname));}) int lua_Dump(lua_Writer writer | |
| int | lua_Yield (int nresults) |
| int | lua_Resume (int narg) |
| int | lua_Status () |
| int | lua_GetGCCount () |
| wxString | lua_Version () const |
| int | lua_Error () |
| int | lua_Next (int idx) |
| void | lua_Concat (int n) |
| void | lua_Register (const char *funcName, lua_CFunction f) |
| wxLUA_UNICODE_ONLY (void lua_Register(const wxString &funcName, lua_CFunction f){lua_Register(wx2lua(funcName), f);}) void lua_PushCFunction(lua_CFunction f) | |
| bool | lua_IsFunction (int idx) const |
| bool | lua_IsTable (int idx) const |
| bool | lua_IsLightUserdata (int idx) const |
| bool | lua_IsNil (int idx) const |
| bool | lua_IsBoolean (int idx) const |
| bool | lua_IsThread (int idx) const |
| bool | lua_IsNone (int idx) const |
| bool | lua_IsNoneOrNil (int idx) const |
| void | lua_SetGlobal (const char *s) |
| void | lua_GetGlobal (const char *s) |
| int | lua_GetStack (int level, lua_Debug *ar) |
| int | lua_GetInfo (const char *what, lua_Debug *ar) |
| wxLUA_UNICODE_ONLY (int lua_GetInfo(const wxString &what, lua_Debug *ar){return lua_GetInfo(wx2lua(what), ar);}) const char *lua_GetLocal(const lua_Debug *ar | |
| const char * | lua_SetLocal (const lua_Debug *ar, int n) |
| const char * | lua_GetUpvalue (int funcindex, int n) |
| const char * | lua_SetUpvalue (int funcindex, int n) |
| int | lua_SetHook (lua_Hook func, int mask, int count) |
| lua_Hook | lua_GetHook () |
| int | lua_GetHookMask () |
| int | lua_GetHookCount () |
| void | luaI_OpenLib (const char *libname, const luaL_reg *l, int nup) |
| void | luaL_Register (const char *libname, const luaL_reg *l) |
| int | luaL_GetMetafield (int obj, const char *e) |
| int | luaL_CallMeta (int obj, const char *e) |
| int | luaL_TypeError (int narg, const char *tname) |
| int | luaL_ArgError (int numarg, const char *extramsg) |
| const char * | luaL_CheckLString (int numArg, size_t *l) |
| const char * | luaL_OptLString (int numArg, const char *def, size_t *len) |
| lua_Number | luaL_CheckNumber (int numArg) |
| lua_Number | luaL_OptNumber (int nArg, lua_Number def) |
| lua_Integer | luaL_CheckInteger (int numArg) |
| lua_Integer | luaL_OptInteger (int nArg, lua_Integer def) |
| void | luaL_CheckStack (int sz, const char *msg) |
| void | luaL_CheckType (int narg, int t) |
| void | luaL_CheckAny (int narg) |
| int | luaL_NewMetatable (const char *tname) |
| void | luaL_GetMetatable (const char *tname) |
| void * | luaL_CheckUdata (int ud, const char *tname) |
| void | luaL_Where (int lvl) |
| int | luaL_Error (const char *fmt,...) |
| int | luaL_CheckOption (int narg, const char *def, const char *const lst[]) |
| int | luaL_Ref (int t) |
| void | luaL_Unref (int t, int ref) |
| int | luaL_LoadFile (const char *filename) |
| int | luaL_LoadBuffer (const char *buff, size_t sz, const char *name) |
| int | luaL_LoadString (const char *s) |
| void | luaL_ArgCheck (bool condition, int numarg, const char *extramsg) |
| const char * | luaL_CheckString (int numArg) |
| const char * | luaL_OptString (int numArg, const char *def) |
| int | luaL_CheckInt (int numArg) |
| int | luaL_OptInt (int numArg, int def) |
| long | luaL_CheckLong (int numArg) |
| long | luaL_OptLong (int numArg, int def) |
| void | GetGlobals () |
| wxString | GetLuaPath () |
| void | AddLuaPath (const wxPathList &pathlist) |
| void | AddLuaPath (const wxFileName &filename) |
| bool | operator== (const wxLuaState &wxlState) const |
| bool | operator!= (const wxLuaState &wxlState) const |
| wxLuaState & | operator= (const wxLuaState &wxlState) |
Static Public Member Functions | |
| wxLuaState | GetwxLuaState (lua_State *L) |
| wxLuaState | GetDerivedMethodState (void *obj_ptr, const char *method_name) |
Public Attributes | |
| bool | null_ptr = false) const |
| int | n |
| void * | data |
Static Public Attributes | |
| wxHashMapLuaState | s_wxHashMapLuaState |
| bool | sm_wxAppMainLoop_will_run = false |
Private Member Functions | |
| virtual wxObjectRefData * | CreateRefData () const |
|
|
Definition at line 669 of file wxlstate.h. Referenced by Create(), GetwxLuaState(), and lua_ToThread(). |
|
||||||||||||
|
Definition at line 672 of file wxlstate.h. |
|
||||||||||||
|
Definition at line 675 of file wxlstate.h. |
|
|
Definition at line 677 of file wxlstate.h. |
|
|
Definition at line 681 of file wxlstate.h. References wxLuaState. |
|
||||||||||||
|
Definition at line 2859 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxluaO_addgcobject(). |
|
|
Definition at line 2854 of file wxlstate.cpp. |
|
|
Definition at line 3941 of file wxlstate.cpp. References GetLuaPath(), LUA_PATH, lua_PushString(), and lua_SetGlobal(). |
|
|
Definition at line 3930 of file wxlstate.cpp. |
|
|
Definition at line 2914 of file wxlstate.cpp. References wxLuaEventCallback::GetEvtHandler(), M_WXLSTATEDATA, Ok(), and wxlua_lreg_evtcallbacks_key. Referenced by wxLuaEventCallback::Connect(). |
|
|
Definition at line 2973 of file wxlstate.cpp. References wxLuaWinDestroyCallback::GetWindow(), M_WXLSTATEDATA, Ok(), and wxlua_lreg_windestroycallbacks_key. Referenced by wxLuaWinDestroyCallback::wxLuaWinDestroyCallback(). |
|
|
Definition at line 2883 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxluaW_addtrackedwindow(). |
|
|
Definition at line 2683 of file wxlstate.cpp. References GetLuaDebugHook(), GetLuaDebugHookCount(), GetLuaDebugHookSendEvt(), GetLuaDebugHookYield(), wxLuaEvent::m_debug_hook_break, M_WXLSTATEDATA, Ok(), and SetLuaDebugHook(). Referenced by wxlua_debugHookFunction(). |
|
|
Definition at line 2416 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). Referenced by Destroy(). |
|
||||||||||||||||||||||||
|
Definition at line 2656 of file wxlstate.cpp. References wx2lua(), and wxlua_errorinfo(). Referenced by CompileString(). |
|
||||||||||||||||||||
|
Definition at line 2651 of file wxlstate.cpp. References CompileBuffer(), wxLuaCharBuffer::GetData(), and wxLuaCharBuffer::Length(). Referenced by wxLua_function_CompileLuaScript(). |
|
||||||||||||
|
||||||||||||
|
Definition at line 2256 of file wxlstate.cpp. References Create(), Destroy(), GetId(), M_WXLSTATEDATA, SendEvent(), wxLUASTATE_OPENBINDINGS, and wxLUASTATE_SETSTATE. |
|
|
Definition at line 2250 of file wxlstate.cpp. References Destroy(). Referenced by Create(). |
|
|
Definition at line 2241 of file wxlstate.cpp. |
|
|
Definition at line 2669 of file wxlstate.cpp. References GetLuaState(), wxLuaEvent::m_debug_hook_break, M_WXLSTATEDATA, Ok(), and wxlua_debugHookFunction(). |
|
||||||||||||||||
|
Definition at line 2865 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxluaO_deletegcobject(). |
|
|
Definition at line 2405 of file wxlstate.cpp. References CloseLuaState(), and M_WXLSTATEDATA. Referenced by Create(). |
|
|
Definition at line 2907 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxLuaCleanupWindows(). |
|
|
Definition at line 2822 of file wxlstate.cpp. References wxLuaBinding::FindBindClass(). |
|
|
Definition at line 2817 of file wxlstate.cpp. References wxLuaBinding::FindBindClass(). |
|
|
Definition at line 2812 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxluaT_getclass(). |
|
|
Definition at line 2799 of file wxlstate.cpp. References wxLuaBinding::FindBindClass(), M_WXLSTATEDATA, Ok(), and wxluaT_getclass(). Referenced by wxLuaEventCallback::OnEvent(). |
|
|
Definition at line 2834 of file wxlstate.cpp. References wxLuaBinding::FindBindEvent(), and Ok(). Referenced by wxLuaEventCallback::Connect(). |
|
|
Definition at line 3122 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), stack_idx, and wxlua_getbooleantype(). |
|
|
Definition at line 2845 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxlua_getcallbaseclassfunction(). |
|
||||||||||||
|
Definition at line 3178 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), stack_idx, and wxlua_getchararray(). |
|
|
Definition at line 2694 of file wxlstate.cpp. References wxLuaEvent::m_debug_hook_break, M_WXLSTATEDATA, and Ok(). |
|
|
Definition at line 2699 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). |
|
||||||||||||
|
Definition at line 3232 of file wxlstate.cpp. References s_wxHashMapLuaState, and wxNullLuaState. |
|
|
Definition at line 2495 of file wxlstate.cpp. References M_WXLSTATEDATA. Referenced by wxLuaWinDestroyCallback::OnDestroy(). |
|
|
Definition at line 2877 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxluaO_getgcobjectinfo(). |
|
|
Definition at line 3910 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). |
|
|
Definition at line 2506 of file wxlstate.cpp. References M_WXLSTATEDATA. Referenced by Create(), SendLuaErrorEvent(), wxlua_debugHookFunction(), and wxlua_printFunction(). |
|
|
Definition at line 2639 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), and wxlua_getwxeventtype(). |
|
||||||||||||
|
Definition at line 3196 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), stack_idx, and wxlua_getintarray(). |
|
|
Definition at line 3127 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), stack_idx, and wxlua_getintegertype(). |
|
|
Definition at line 2742 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). |
|
|
Definition at line 2793 of file wxlstate.cpp. References wxLuaBinding::GetLuaBinding(). |
|
|
Definition at line 2721 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). Referenced by ClearDebugHookBreak(). |
|
|
Definition at line 2726 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). Referenced by ClearDebugHookBreak(). |
|
|
Definition at line 2736 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). Referenced by ClearDebugHookBreak(). |
|
|
Definition at line 2731 of file wxlstate.cpp. References M_WXLSTATEDATA, and Ok(). Referenced by ClearDebugHookBreak(). |
|
|
Definition at line 3919 of file wxlstate.cpp. References lua_GetGlobal(), LUA_PATH, lua_Pop(), lua_TowxString(), and Ok(). Referenced by AddLuaPath(). |
|
|
|
Definition at line 2436 of file wxlstate.cpp. References M_WXLSTATEDATA. Referenced by GetwxLuaState(). |
|
|
Definition at line 726 of file wxlstate.h. References wxLuaStateRefData. |
|
|
Definition at line 3132 of file wxlstate.cpp. References M_WXLSTATEDATA, Ok(), stack_idx, and wxlua_getnumbertype(). |
|