wxLuaBinding Class Reference

#include <wxlbind.h>

Inheritance diagram for wxLuaBinding:
[legend]
Collaboration diagram for wxLuaBinding:
[legend]

List of all members.

Public Member Functions

 wxLuaBinding ()
virtual ~wxLuaBinding ()
virtual bool RegisterBinding (const wxLuaState &wxlState)
wxString GetBindingName () const
void SetBindingName (const wxString &name)
wxString GetLuaNamespace () const
void SetLuaNamespace (const wxString &nameSpace)
size_t GetClassCount () const
wxLuaBindClassGetClassArray ()
size_t GetNumberCount () const
wxLuaBindNumberGetNumberArray ()
size_t GetStringCount () const
wxLuaBindStringGetStringArray ()
size_t GetEventCount () const
wxLuaBindEventGetEventArray ()
size_t GetObjectCount () const
wxLuaBindObjectGetObjectArray ()
size_t GetFunctionCount () const
wxLuaBindMethodGetFunctionArray ()
bool HaswxLuaType (int wxl_type) const
const wxLuaBindEventGetBindEvent (wxEventType eventType) const
wxString GetEventTypeName (wxEventType eventType) const
const wxLuaBindClassGetBindClass (int wxl_type) const
const wxLuaBindClassGetBindClass (const char *className) const
const wxLuaBindClassGetBindClass (const wxLuaBindMethod *wxlMethod) const
const wxLuaBindClassGetBindClass (const wxLuaBindCFunc *wxlCFunc) const

Static Public Member Functions

static bool InstallClassMetatable (lua_State *L, const wxLuaBindClass *wxlClass)
static bool InstallClass (lua_State *L, const wxLuaBindClass *wxlClass)
static wxLuaBindingGetLuaBinding (const wxString &bindingName)
static const wxLuaBindClassFindBindClass (int wxl_type)
static const wxLuaBindClassFindBindClass (const char *className)
static const wxLuaBindClassFindBindClass (const wxLuaBindMethod *wxlMethod)
static const wxLuaBindClassFindBindClass (const wxLuaBindCFunc *wxlCFunc)
static const wxLuaBindEventFindBindEvent (wxEventType eventType)
static wxLuaBindingFindMethodBinding (const wxLuaBindMethod *wxlMethod)
static wxLuaBindMethodGetClassMethod (const wxLuaBindClass *wxlClass, const char *methodName, int method_type, bool search_baseclasses)
static wxLuaBindingList * GetBindingList ()
static void InitAllBindings (bool force_update=false)

Protected Member Functions

void InitBinding ()
virtual void DoRegisterBinding (const wxLuaState &wxlState) const

Protected Attributes

size_t m_classCount
wxLuaBindClassm_classArray
size_t m_numberCount
wxLuaBindNumberm_numberArray
size_t m_stringCount
wxLuaBindStringm_stringArray
size_t m_eventCount
wxLuaBindEventm_eventArray
size_t m_objectCount
wxLuaBindObjectm_objectArray
size_t m_functionCount
wxLuaBindMethodm_functionArray
wxString m_bindingName
wxString m_nameSpace
int m_first_wxluatype
int m_last_wxluatype

Static Protected Attributes

static wxLuaBindingList sm_bindingList
static bool sm_bindingList_initialized = false
static int sm_wxluatype_max = 12 +1

Detailed Description

Definition at line 525 of file wxlbind.h.


Constructor & Destructor Documentation

wxLuaBinding::wxLuaBinding (  ) 

Definition at line 961 of file wxlbind.cpp.

virtual wxLuaBinding::~wxLuaBinding (  )  [virtual]

Definition at line 529 of file wxlbind.h.


Member Function Documentation

void wxLuaBinding::DoRegisterBinding ( const wxLuaState wxlState  )  const [protected, virtual]
const wxLuaBindClass * wxLuaBinding::FindBindClass ( const wxLuaBindCFunc wxlCFunc  )  [static]

Definition at line 1492 of file wxlbind.cpp.

References GetBindClass(), and sm_bindingList.

const wxLuaBindClass * wxLuaBinding::FindBindClass ( const wxLuaBindMethod wxlMethod  )  [static]

Definition at line 1473 of file wxlbind.cpp.

References GetBindClass(), and sm_bindingList.

const wxLuaBindClass * wxLuaBinding::FindBindClass ( const char *  className  )  [static]

Definition at line 1435 of file wxlbind.cpp.

References GetBindClass(), and sm_bindingList.

const wxLuaBindClass * wxLuaBinding::FindBindClass ( int  wxl_type  )  [static]
const wxLuaBindEvent * wxLuaBinding::FindBindEvent ( wxEventType  eventType  )  [static]

Definition at line 1511 of file wxlbind.cpp.

References GetBindEvent(), and sm_bindingList.

Referenced by wxLuaState::GetBindEvent().

wxLuaBinding * wxLuaBinding::FindMethodBinding ( const wxLuaBindMethod wxlMethod  )  [static]

Definition at line 1530 of file wxlbind.cpp.

References GetFunctionArray(), GetFunctionCount(), and sm_bindingList.

Referenced by wxlua_argerrormsg().

const wxLuaBindClass * wxLuaBinding::GetBindClass ( const wxLuaBindCFunc wxlCFunc  )  const
const wxLuaBindClass * wxLuaBinding::GetBindClass ( const wxLuaBindMethod wxlMethod  )  const
const wxLuaBindClass * wxLuaBinding::GetBindClass ( const char *  className  )  const

Definition at line 1352 of file wxlbind.cpp.

References m_classArray, m_classCount, and wxLuaBindClassArrayCompareFn().

const wxLuaBindClass * wxLuaBinding::GetBindClass ( int  wxl_type  )  const
const wxLuaBindEvent * wxLuaBinding::GetBindEvent ( wxEventType  eventType  )  const

Definition at line 1317 of file wxlbind.cpp.

References m_eventArray, m_eventCount, and wxLuaBindEventArrayCompareFn().

Referenced by FindBindEvent(), and GetEventTypeName().

static wxLuaBindingList* wxLuaBinding::GetBindingList (  )  [static]
wxString wxLuaBinding::GetBindingName (  )  const
wxLuaBindClass* wxLuaBinding::GetClassArray (  ) 

Definition at line 555 of file wxlbind.h.

Referenced by InitAllBindings(), and wxluabind_wxLuaBinding__index().

size_t wxLuaBinding::GetClassCount (  )  const

Definition at line 554 of file wxlbind.h.

Referenced by InitAllBindings(), and wxluabind_wxLuaBinding__index().

wxLuaBindMethod * wxLuaBinding::GetClassMethod ( const wxLuaBindClass wxlClass,
const char *  methodName,
int  method_type,
bool  search_baseclasses 
) [static]
wxLuaBindEvent* wxLuaBinding::GetEventArray (  ) 

Definition at line 564 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

size_t wxLuaBinding::GetEventCount (  )  const

Definition at line 563 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

wxString wxLuaBinding::GetEventTypeName ( wxEventType  eventType  )  const

Definition at line 1330 of file wxlbind.cpp.

References GetBindEvent(), lua2wx(), and wxLuaBindEvent::name.

wxLuaBindMethod* wxLuaBinding::GetFunctionArray (  ) 

Definition at line 570 of file wxlbind.h.

Referenced by FindMethodBinding(), and wxluabind_wxLuaBinding__index().

size_t wxLuaBinding::GetFunctionCount (  )  const

Definition at line 569 of file wxlbind.h.

Referenced by FindMethodBinding(), and wxluabind_wxLuaBinding__index().

wxLuaBinding * wxLuaBinding::GetLuaBinding ( const wxString &  bindingName  )  [static]

Definition at line 1418 of file wxlbind.cpp.

References GetBindingName(), and sm_bindingList.

wxString wxLuaBinding::GetLuaNamespace (  )  const
wxLuaBindNumber* wxLuaBinding::GetNumberArray (  ) 

Definition at line 558 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

size_t wxLuaBinding::GetNumberCount (  )  const

Definition at line 557 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

wxLuaBindObject* wxLuaBinding::GetObjectArray (  ) 

Definition at line 567 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

size_t wxLuaBinding::GetObjectCount (  )  const

Definition at line 566 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

wxLuaBindString* wxLuaBinding::GetStringArray (  ) 

Definition at line 561 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

size_t wxLuaBinding::GetStringCount (  )  const

Definition at line 560 of file wxlbind.h.

Referenced by wxluabind_wxLuaBinding__index().

bool wxLuaBinding::HaswxLuaType ( int  wxl_type  )  const

Definition at line 573 of file wxlbind.h.

void wxLuaBinding::InitAllBindings ( bool  force_update = false  )  [static]
void wxLuaBinding::InitBinding (  )  [protected]
bool wxLuaBinding::InstallClass ( lua_State *  L,
const wxLuaBindClass wxlClass 
) [static]
bool wxLuaBinding::InstallClassMetatable ( lua_State *  L,
const wxLuaBindClass wxlClass 
) [static]
bool wxLuaBinding::RegisterBinding ( const wxLuaState wxlState  )  [virtual]
void wxLuaBinding::SetBindingName ( const wxString &  name  ) 

Definition at line 548 of file wxlbind.h.

void wxLuaBinding::SetLuaNamespace ( const wxString &  nameSpace  ) 

Definition at line 552 of file wxlbind.h.


Member Data Documentation

wxString wxLuaBinding::m_bindingName [protected]

Definition at line 671 of file wxlbind.h.

Definition at line 659 of file wxlbind.h.

Referenced by DoRegisterBinding(), GetBindClass(), and InitBinding().

size_t wxLuaBinding::m_classCount [protected]

Definition at line 658 of file wxlbind.h.

Referenced by DoRegisterBinding(), GetBindClass(), and InitBinding().

Definition at line 665 of file wxlbind.h.

Referenced by DoRegisterBinding(), GetBindEvent(), and InitBinding().

size_t wxLuaBinding::m_eventCount [protected]

Definition at line 664 of file wxlbind.h.

Referenced by DoRegisterBinding(), GetBindEvent(), and InitBinding().

Definition at line 673 of file wxlbind.h.

Referenced by InitBinding().

Definition at line 669 of file wxlbind.h.

Referenced by DoRegisterBinding().

size_t wxLuaBinding::m_functionCount [protected]

Definition at line 668 of file wxlbind.h.

Referenced by DoRegisterBinding().

Definition at line 674 of file wxlbind.h.

Referenced by InitBinding().

wxString wxLuaBinding::m_nameSpace [protected]

Definition at line 672 of file wxlbind.h.

Referenced by RegisterBinding().

Definition at line 661 of file wxlbind.h.

Referenced by DoRegisterBinding(), and InitBinding().

size_t wxLuaBinding::m_numberCount [protected]

Definition at line 660 of file wxlbind.h.

Referenced by DoRegisterBinding(), and InitBinding().

Definition at line 667 of file wxlbind.h.

Referenced by DoRegisterBinding(), and InitBinding().

size_t wxLuaBinding::m_objectCount [protected]

Definition at line 666 of file wxlbind.h.

Referenced by DoRegisterBinding(), and InitBinding().

Definition at line 663 of file wxlbind.h.

Referenced by DoRegisterBinding(), and InitBinding().

size_t wxLuaBinding::m_stringCount [protected]

Definition at line 662 of file wxlbind.h.

Referenced by DoRegisterBinding(), and InitBinding().

wxLuaBindingList wxLuaBinding::sm_bindingList [static, protected]
bool wxLuaBinding::sm_bindingList_initialized = false [static, protected]

Definition at line 677 of file wxlbind.h.

Referenced by InitAllBindings().

int wxLuaBinding::sm_wxluatype_max = 12 +1 [static, protected]

Definition at line 678 of file wxlbind.h.

Referenced by InitBinding().


The documentation for this class was generated from the following files:
Generated on Tue Jul 13 10:30:39 2010 for wxLua by  doxygen 1.6.3