The binding generator for wxLua provides information for Lua code to
interface to a C/C++ API. The C/C++ objects are created in Lua as userdata
and manipulated using the same functional semantics as you would in C/C++.
The
wxlua.html wxLua manual describes in detail
how the object will be named and where it will be placed in Lua.
Binding files are provided for the
wxWidgets cross platform GUI
library and the wxStyledTextCtrl contrib library of the wxWidgets library.
You may also write and add your own bindings to use wxLua as a scripting
language in your own C++ project. There is an example of this in the
apps/wxluacan/src directory.
The interface files are skeletons of the C/C++ header files that the
program
bindings/genwxbind.lua parses and turns into C functions
that are imported into Lua by an automatically generated
wxLuaBinding derived class. The whole process of generation is
automatic and no editing of the output files should be required. If there
is any problem you should fix the interface files and regenerate instead of
trying to fix the generated files. Some examples of the interface files are
in the
bindings/wxwidgets/*.i directory. Before writing your own,
take some time to examine them to see the differences between them and the
original C++ code. If the automatic bindings do not generate suitable code
for a specific function, you can
%override individual function
bindings with your own code to implement it in any way you want.